To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-06-2007, 06:09 AM   #1
freehand
Member
 
Join Date: Dec 2000
Posts: 76
back ground script.

ok wonder if some one could help please > i wish to use a < for next loop> over a 30 frame anim but i do not want the <for next loop> to complete straight away on the first key frame but over the period of the 30 frame anim.

many thx.

ie: i want the code to run over the period of the anim a little like multi task in the back ground of the anim and not straight away before the anim begins to start.

hope thats clear thx.

need to run action scipt in the back ground while stuff going on sure im missing some thing or is this the nature of flash.

ps.sorry if this has been asked before.
freehand is offline   Reply With Quote
Old 03-06-2007, 06:56 AM   #2
Katnap Kaos
Modulator
 
Katnap Kaos's Avatar
 
Join Date: Nov 2003
Location: A shoebox outside of SM Megamall
Posts: 149
Just create another layer that is the length of the animation, and place a MovieClip in that layer.

Then put the the script in the MC:
code:

onClipEvent(enterFrame){
//Your script goes here
}




Actually a better way is just to put within that new layer
code:

_root.onEnterFrame = function(){
//Your script goes here
}


The idea is that the layer spans the entire animation, but there aren't any keyframes to remove the script (since the layer should be blank). By using either of the enterFrame functions, the script repeats itself each frame.
__________________
As a Gamer, you play by the rules.
As a Programmer, you play as God.

Last edited by Katnap Kaos; 03-06-2007 at 07:01 AM.
Katnap Kaos is offline   Reply With Quote
Old 03-06-2007, 08:32 AM   #3
freehand
Member
 
Join Date: Dec 2000
Posts: 76
many thx sorted.
freehand is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.