Basic onEnterFrame question
i'm creating project, , testing out how things before put them in real project.
attached code click btn01, attaches circlecopy stage, circlecopy automatically supposed move left right indefinitely.
the circlecopy attaches, doesn't move. code simple can - missing?
attached code click btn01, attaches circlecopy stage, circlecopy automatically supposed move left right indefinitely.
the circlecopy attaches, doesn't move. code simple can - missing?
the problem order of execution.
when flash enters frame code say, "okay know when btn01 clicked. oh, , should attach onenterframe handler to ballcopy."
the problem @ time enter frame there no such thing ballcopy. second half ignored flash.
so need wait until ballcopy attached before try , assign things it. easiest way put declaration of onenterframe inside of onrelease handler.
when flash enters frame code say, "okay know when btn01 clicked. oh, , should attach onenterframe handler to ballcopy."
the problem @ time enter frame there no such thing ballcopy. second half ignored flash.
so need wait until ballcopy attached before try , assign things it. easiest way put declaration of onenterframe inside of onrelease handler.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment