Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: targeting multiple MCs
From: Paul Willoughby
Date: Thu, 01 Feb 2001 14:19:38 -0000

Hi James, hows it going?

The best way to do this would be a loop. In Flash 4 this would be:
On(Rollover)
Set Variable: "totalClips" = 30
Loop While (i < totalClips)
Set Variable: "i" = i + 1
Begin Tell Target ("c" & i)
Play
End Tell Target
End Loop
End on

Or in Flash 5 a for loop would work best:

on (rollover){
for(i=0;i<30;i++){
_root["c" + i].play();
}
}

hth

paul





> -----Original Message-----
> From: James Cutts [jamesatinone [dot] co [dot] uk (mailto:jamesatinone [dot] co [dot] uk)]
> Sent: 01 February 2001 12:44
> To: flasher from chinwag
> Subject: [flasher] targeting multiple MCs
>
>
> Hi all
>
> Can anyone help me with the correct syntax for targeting multiple MCs
>
> I need a button to target over 30 MCs at a time:



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]