Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

artists gallery

Status
Not open for further replies.

law78

Technical User
Apr 23, 2004
78
GB
Hi people, I am creating an online gallery for an illustrator:


I have a main movie which loads into level0 and the thumbnail images load into level one, the problem I have is that there are over 50 illustrations therefore over 50 movies for me to edit and the most time consuming thing is adding the actions to the next and previous buttons, what I want to know is this:

If I rename my swf file 0.swf, 1.swf, 2.swf etc etc etc, It would be possible I presume for flash to add 1 to the file name of the currently loaded swf file and load the next swf file also -1 for the back button, but can this be done when files are loaded into levels? All I want is for all the illustration movies (i.e. 1.swf, 2.swf etc) to load into level one and know which is currently loaded so that it can add 1 or minus one to navigate.

Any help would be good...
 
just create a variable to keep track of where you are and use that varibale to make the next and previous action (variable-1 and variable+1, respectively)

[conehead]
 
pretty new to actionscript, if I place the variable on the main timeline (_level0) can it still function from other timelines on other levels?

Thanks
 
yes. you reach level0 by referencing _root.

_root.variable

will reach the variable from any level

[conehead]
 
Nope, when using levels, _root is actually _level0, so that would be...

_level0.my_var = value;

Better make it a global variable, and set it or trace it from anywhere, even if the main movie on _level0, is removed...

_global.my_var = value;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top