Flasher Archive

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

Subject: RE: FLASH: random tell targets
From: Paul Willoughby
Date: Wed, 29 Nov 2000 13:39:41 GMT

Not sure of the exact syntax in Flash 5, but basically you could check
the _currentframe property of the MC you're targeting. If it's >1 then
the clip must be playing and you want to select another clip.

Or you could do it by setting a variable in the actual MC's, so in frame
1 have 'state = meStop' and in frame 2 'state=mePlay'. You could then
check the value of this variable before targeting the clip.

Something else to think about: If you select another clip randomly
there's always the risk it will pick the same clip again. You might need
an additional loop to deal with this.



peter colman wrote on 28 November 2000
> anyclip = Number(random(7))+1;
> tellTarget ("/mc" add anyclip) {
> gotoAndPlay (1);
> setProperty (mc, _xscale, random(100)+50);
> setProperty (mc, _yscale, random(100)+50);
> }
> can anyone help
> been using this code to detrmine random tell targets
> and random resize works great
> the code is set into a 10 frame loop
> the mcs are 20 frames
> the idea being that a few mcs are on the stage at the same time
> is it possible to determine that if a mc is already playing to
> select another that is not
> thanks in advance
> ak8

flasher is generously supported by...
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save 200
http:// www.flashforward2000.com
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

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