Flasher Archive

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


Subject: Re: FLASH: tell target to go to a Label
From: Dorian Nisinson
Date: Wed, 29 Dec 1999 21:41:50 GMT

Frederic,

First change you label names to start with a letter. Flash does not like
numbers as labels. For my example I used "p".
I named the labels p0, p1, p2, p3 and p4.
I used the variable "num" to hold the results of the random operation.

Then use this code in your button:

On (Press)
Begin Tell Target ("/son perdue")
Set Variable: "num" = Random (4)
Go to and Stop ("p"&num)
End Tell Target
End On

Be sure to select the Expression check box in the Go to and Stop action.
The reason this works is you take the results of Random (4) (which will
be 0 through 4) and concatenate it to the letter p. this gives you one
of the label names for your go to action.

Hope this helps.

Dorian

Fr�d�ric Pierron / Blast Interaction wrote:
>
> Hi,
>
> I would like to go to a specified Label in a MC.
>
> Each Label is named by a number, then i do a random(n) to select a Label but
> this :
>
> Begin Tell Target ("/son perdu")
> Set Variable: "p" = random (5)
> Go to and Play ("p")
> End Tell Target
>
> doesn't seem to work. Any idea ?
>
> Frederic
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
> Reserve your space today at http://www.streamingmedia.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
--------------------------------------------------------------------------------------
FLASHCENTRAL.COM * The Source for Flash Information *
http://www.FlashCentral.com/

Flash Tell Target Tutorial
http://www.FlashBible.com/members/TellTarget/
The Flash Fortune Teller http://www.bway.net/~dorian/FortuneT.htm
Dorian Nisinson Design
http://www.bway.net/~dorian
dorianatbway [dot] net (mailto:dorianatbway [dot] net)
--------------------------------------------------------------------------------------


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: tell target to go to a Label, Fr�d�ric Pierron / Blast

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