hey guys,
i’m having an issue accessing a movieClip button that lives in side an attached MC.
here is my AS:
// this is my attached MC function
function newPage(target){
holder.attachMovie(target, "foo", _root.getNextHighestDepth());
}
/*
PROBLEM --
here is my problem... how am i supposed to get to this button inside the attached MC?!
if i'm passing "target" inside my newPage function and then give it the instance name "foo", shouldn't this work?
*/
holder.foo.myButton.onRelease = function(){
trace("hit");
}
// these buttons load my attached MC
b1.onRelease = function(){
newPage("page1");
}
b2.onRelease = function(){
newPage("page2");
}