PDA

View Full Version : Array + For loop


spazmaster
04-11-2003, 09:17 AM
I have some problems with my Array and/or For loop
this is the file i am working on at the moment, but somehow it doesnt work :(
could someone have a look at it?
http://www.alphavision.nl/fulko/darnthing.zip

I have made an array in the _root, containing the instance names
of the movieclips.
on the buttons, i have put this script:

on (release){
for (i=0; i<_root.length; i++) {
_root[_root[i]].mainNavigation.gotoandStop(1);
}
_root.mov1.gotoAndPlay(2);

}



thanx in advance

CyanBlue
04-11-2003, 09:28 AM
Here you go...

You should not use any symbols in the file name if possible... ;)

spazmaster
04-11-2003, 09:36 AM
thanx man! this problem cost me a few hours yesterday and i still
couldnt get it working properly (yeah yeay im a noob) :)

spazmaster
04-11-2003, 09:41 AM
well thx cyanblue for helping out. i couldnt detect the problem on first sight, so i told my intern to start learning to use the forums, so i let him use my account. :p

fulko
04-11-2003, 10:51 AM
intern? hm ? i think it was you being a noob after all
the noobmaster

spazmaster
04-11-2003, 10:53 AM
interns *decides to keep in next months paycheck* :p

fulko
04-11-2003, 11:09 AM
* decide not to give you the cure to the poison in the dubbelfris *