This content has been marked as final. Show 4 replies
i sure didn't understand what you're doing.
Ok. Let me try this again. I have a class file with the following code:
evtObj being the main stage, decoder_mc being an object on the stage that is created at the framelable "introDecode".
In AS 2.0 when I try trace the object it returns the object back, but in AS 3.0 when I trace it, it returns null.
Make sense? Sorry for being sounding so confused, but I have been at it for a few hours. Thank for you help.
that makes sense.
use an onEnterFrame handler or some other timer that executes after the playhead moves to introDecode and your movieclip is instantiated. (and then terminate the handler or timer.)
"romkeedehaan" <email@example.com> wrote in message
> This is an AS3 question:
> I have a movieclip on that starts on frame 2.
> I have code like this:
> trace(target.child) //get null
> but if I put that same trace statement on frame to it returns a movieclip.
> Now my understanding is that Flash renders the code then process the frame
> that's why it returns null in the AS and returns something when I am
> calling it
> on the timeline.
> So my question is that how can I call the movieclip in actionscript
> having to write any methods in the timeline?
> Hope I explained this good.