Flasher Archive

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


Subject: RE: [flasher] Re: targeting multiple MCs
From: Paul Willoughby
Date: Thu, 01 Feb 2001 15:15:59 -0000

ooops! i didn't notice the names weren't in sequence! James, if you know
which 30 clips you want to target and it doesn't conflict with other MC
names you could still do the loop through one at a time, you'll just get
lots of 'target not found' errors in the testing environment. Or is it
possible to structure your movie so the movie clip names do follow a
sequence?
If not, then you can at least drop the tell targets i.e.

on(rollover){
_root.c3.play()
_root.c7.play()
_root.c9.play()
}

should help prevent RSI if nothing else ;)

paul

> -----Original Message-----
> From: Helen Triolo [designerati-technica [dot] com (mailto:designerati-technica [dot] com)]
> Sent: 01 February 2001 14:03
> To: flasher from chinwag
> Subject: [flasher] Re: targeting multiple MCs
>
>
> If you had c5 also, you could do:
>
> on (rollOver) {
> for (i=3; i<12; i+=2;) {
> _root["c"+i].gotoAndPlay();
> }
> }
>
> But since the mc names you have don't follow any numerical sequence, I
> can't think of a good way.
>
> Regards,
> Helen
> -----------------------------------------------------
> i-Technica � http://i-technica.com � 301.424.6037
> developer resources: http://i-technica.com/whitestuff
>
> James Cutts wrote:
> >
> > 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:
> > At the moment I have:
> >
> > on (rollOver) {
> > tellTarget ("c3") {
> > play ();
> > tellTarget ("c7") {
> > play ();
> > tellTarget ("c9") {
> > play ();
> > tellTarget ("c11") {
> > play ();
> >
> > Is there a neater/easier/quicker way to do this?
> > Something like:
> >
> > on (rollOver) {
> > tellTarget ("c3" + "c7" + "c9" + "c11") {
> > play ();
> >
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: Paul_Willoughbyatbeap [dot] co [dot] uk
> To unsubscribe, email leave-flasher-479712Xatlists [dot] chinwag [dot] com
>



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