Hi guy’s I was wondering if I could get some help with AS-III, I am learning the changes from AS-II to III and I am having trouble with how they have changed the button targeting. Targeting a button on the main timeline that is always on the stage is easy but I can not figure out how to target one that is in a movie clip and dose not show up until the movie clip is on a certant frame I always get a null error because it thinks the object dose not exsist yet.
I use the following code normally so how would i make this work for a nested button that does not show on stage untill the movie clip its in goes to that frame.
var Button_Touch = MouseEvent.CLICK;
ONEBTN.addEventListener(Button_Touch, ONEDOWN);
function ONEDOWN(e:Event = null):void
{
trace("ONE PRESSED");
}
Any help would be appreiciated I have googled with no luck. Thanks guys.