PDA

View Full Version : Array


Yestradamus
12-11-2002, 03:18 PM
I'm looking at this tute:

http://www.actionscripts.org/tutorials/intermediate/Arrays/index.shtml

and understand what an array is, and even what code to use. My question is, where does the code go?

Do I out it on the first frame of my main timeline, or timeline of a specific MC if the array will only be used in that MC?

Thanks for the help.

tg
12-11-2002, 04:06 PM
where you put code really depends on your program design. if you need the array accessible by all timelines/object or if it is only necessarry in a specific functions... there are many possible answers to your question, based on how you design your app.

Yestradamus
12-11-2002, 04:22 PM
Lets assume that it needs to be accesable by all timelines and/or objects.

simontheak
12-12-2002, 08:06 AM
Originally posted by Yestradamus
Lets assume that it needs to be accesable by all timelines and/or objects.

Stick it in the first frame of your main timeline then. It will be created as soon as the movie starts to play and you will be able to access it from other timelines using _root.

Yestradamus
12-12-2002, 02:24 PM
Thank you for the response. Have a great day!