Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: addressing variable in movie clip |
From: | John Croteau |
Date: | Thu, 28 Oct 1999 20:57:37 +0100 |
Hi David,
> I have a button on stage which does this:
> On (Release)
> Set Variable: "/blu_mc:blu" = 1
> End On
The above is fine
> where blu_mc is the movie clip and blu is a variable inside the movie clip.
> The movie clip has a frame action which says:
> Set Variable: "blu" = blu
Delete the above this make blu equal to blu - quite unneccessary.
> If (blu = 1)
> Go to and Stop (2)
> End If
If there are no other frames in the MC and no stop actions then the MC
will loop constantly and will stop in frame 2 when the button is
pressed.
You might rather change the action of the frame 1 action to go to frame
3 when blu is 1:
> If (blu = 1)
> Go to and Stop (3)
> End If
Then create a loop between frame 1 and 2 with this in frame 2:
Go to and Play (1)
Now the condition is being constantly rechecked (in frame 1) to see if
blu is 1 (the result of the button being pressed) and will go to frame 3
when it is.
--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauerols [dot] com (mailto:croteauerols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
Replies
FLASH: addressing variable in movie clip, David Owen
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]