PDA

View Full Version : multible actions


anthonygatto
01-17-2003, 07:04 PM
Hey,
This is going to seem pretty basic(just like my actionscript knowledge)but can I have a tellTarget action tell multible MC to say...stop with out typing tellTarget("bla bla")
and then typing this again and again. Is there some way to say telltarget("a then B then C") of course not like this but is there a way. Thanks.
AnthonyGatto

annexion
01-17-2003, 07:44 PM
There is a way, but you might have to change the naming convention of your movieclips for it to work.

Put the following on a button:

on(press){
number_of=10;//number of movieclips
for(i=1;i<=number_of;i++){
_root["mc"+i].gotoAndPlay(2);
}
}

Basically this uses a for loop to cycle through all of the mc's and tell them to play. You will need to name your movieclips sequentially such as mc1, mc2 etc...


Try that and if you have any questions, just ask.

Good luck.

anthonygatto
01-18-2003, 12:50 AM
Thanks for the info. I am soooo glad I found this site...it's so helpfull. Now for the questions(rest assured more to follow in the future). I am trying to make an effect for a picture of a city. I just want to make it appear as if there are lights randomly turning off and on but delayed between. Is there a tut or any suggestions. Thanks again for the help!
AnthonyGatto