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
Post a Comment