|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
When does Flash read the ActionScript
Hi all,
I want to know when does flash read the actionscript present in a frame. Does it read it after a gotoAndPlay? after a gotoAndStop? If there is only one frame, does it read it on each enterFrame (I think not.) I want to knoe the following. Imagine that I have 3 frames, each a keyframe. Evertime I move there does Flash re-read the code? But after a stop it only re-renders the content right? I have an Actionsript book but this things are not very well explained. Thanks for the help. |
|
#2
|
|||
|
|||
|
Ohhh, come on!! I've seen people here that know much more than enough Flash to answer this question!! PLEASE!!!!
|
|
#3
|
|||
|
|||
|
Every time a timeline moves forward a frame, all the actions on that frame are read. Telling a movie to stop will tell Flash to quit changing frames in that timeline, so no more code will be read until you tell it to play again.
If you tell the movie to move to a different frame, all the remaining actions on the current frame are still read, and all the actions on the new frame are not read until one frame later. onClipEvent(enterFrame) and onEnterFrame are read every single frame, regardless of whether or not the timeline is moving. |
|
#4
|
|||
|
|||
|
Enter frame code is called continuously even if the clip has only one frame.
Make _root.x = 1; and attach this code to a 1 frame clip- onClipEvent (enterFrame) { _root.x++; trace(_root.x); } ~mgb |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > When does Flash read the ActionScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|