actionscript 3 - As3 - this.addChild() when gotoAndStop(), child does not remove -


this may beginner's question. have been using this.addchild() add movieclips in this.

but noticed, child in this doesn't mean in current frame, use script remove child when change current frame. means this current scene?

i tried currentframe.addchild(); when read documentary, currentframe returns value.

what can addchild() current frame?and not use removechild(); or there way?

it's been long time since i've worked flash timeline (as oppose pure actionscript), guess easiest way create movieclip on frame in timeline, instead of calling this.addchild(), call movieclip.addchild(). since movieclip not exist in subsequent frames, neither child movieclips.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -