Flasher Archive

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


Subject: FLASH: Help Troubleshoot Random() function
From: Marc Hoffman, Poison Dart Frog Media
Date: Thu, 18 May 2000 10:04:33 +0100

I have five instances of the same movie clip, named box1, box2, box3, box4,
and box5. The movie clip has a stop action in the first frame and then has
a little animation. In the last frame I have the following action script:

Set Variable: "boxnum" = random(5)+1
Begin Tell Target ("/box" & boxnum)
Go to and Play (1)
End Tell Target

The intention is that as each movie clip reaches its last frame, it uses
the above script action to randomly TellTarget one of the five instances to
animate again. It works, but as soon as one of the instances is targeted
twice in a row, the TellTargeting stops functioning and no more animation
is triggered.

Sample is online at http://www.dartfrogmedia.com/targetPractice.fla

Any help would be appreciated; I'm trying to make this work for a class I'm
teaching :-).

thanks.

Marc Hoffman

Poison Dart Frog Media
Flash portfolio: http://www.dartfrogmedia.com/portfolio


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]