Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: HELP! Variable syntax |
From: | John Croteau |
Date: | Fri, 22 Oct 1999 16:25:13 +0100 |
Hi Michael,
> I have 2 buttons: the action of the first is:
> On (Release)
> Set Variable: nextStage = "1"
> Go to and Play ("Getout")
> End On
> On (Release)
> Set Variable: nextStage = "2"
> Go to and Play ("Getout")
> End On
> At the end of the section labelled with "Getout", I have:
> If (nextStage eq "1")
> Go to and Play ("AllThe")
> Else If (nextStage = "2")
> Go to and Play ("links")
> Else
> Stop
> End If
>
> "Getout" is called as normal, but no matter what I try as the final action, the next part ("AllThe" or "links") is not played. It always stops.
> I've tried:
>
> if ("nextStage" = "1")
> if (nextStage = 1)
> if (nextStage eq "1")
The following code works notice the first uses a numeric comparison and
the second uses a string comparison. They both work and it looks like
your code should work as well.
If (Button = 1)
Go to and Stop (20)
Else If (Button eq "2")
Go to and Stop (30)
Else
Stop
End If
My guess is that your frames Allthe and links may not be loaded when you
press the buttons. Does it work when on the hard drive? Does it work
after the file is completely loaded?
Add a tempoarary Text Field and set its Variable property to nextStage
and see if it gets updated when you press your buttons.
--
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: HELP! Variable syntax, Michael Galvin
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]