Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 18th, 2003, 09:01 AM
ygdrasyl ygdrasyl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: BCN
Posts: 84 ygdrasyl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 4 sec
Reputation Power: 7
Send a message via Yahoo to ygdrasyl
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.

Reply With Quote
  #2  
Old June 19th, 2003, 04:33 AM
ygdrasyl ygdrasyl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: BCN
Posts: 84 ygdrasyl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 4 sec
Reputation Power: 7
Send a message via Yahoo to ygdrasyl
Ohhh, come on!! I've seen people here that know much more than enough Flash to answer this question!! PLEASE!!!!

Reply With Quote
  #3  
Old June 21st, 2003, 02:31 AM
marshdabeachy marshdabeachy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 marshdabeachy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to marshdabeachy
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.

Reply With Quote
  #4  
Old June 22nd, 2003, 09:37 AM
SlankenOgen SlankenOgen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: The Netherlands
Posts: 122 SlankenOgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > When does Flash read the ActionScript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway