Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Help Troubleshoot Random() function |
| From: | Torbj�rn Caspersen |
| Date: | Thu, 18 May 2000 10:32:09 +0100 |
Hi
Set Variable: "boxnum" = random(5)+1
Trace ("boxnum = " & boxnum)
If (Substring (_name, 4, 1) ne boxnum)
Begin Tell Target ("/box" & boxnum)
Go to and Play (1)
End Tell Target
Else
Go to and Play (2)
End If
This script works. It seems that the "stop" command in frame 1 stop
everything when it targets itself. You can also just change Go to and Play
(1) to Go to and Play (2) in the original script.
Please respond to flasher
To: flasher
cc: (bcc: Torbj�rn Caspersen/Pro_Contra)
Subject: FLASH: Help Troubleshoot Random() function
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 help
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 help
Replies
Re: FLASH: Help Troubleshoot Random() fu, Cheri Harder
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

