placing AS into timeline
placing AS into timeline
- Started
- Last post
- 2 Responses
- smartK
quick question: I wanna place my actionscript on frame 1 of the limeline, using this:
_root.myMC.onClipEvent (enterFrame) = function () {
_root.total._x += 5;
}won't work ...
- gabe0
onClipEvent actions are used for MCs themselves, not main timelines.
- smartK0
oh I got it, it should have been:
_root.myMC.enterFrame =
instead of _root.myMC.onClipEvent (enterFrame)yeah gabe, but flash mx allows you to place any code in the timeline, even if it's executed on a movie clip ... having the code of an entire movie on the first frame is wonderful I think - no more mess!!