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:37:30 +0100

Hi Johan,

> If you use 1 and 2, maybe you should choose expression and "=" instead of
> "eq". Flash isn't designed to make things easy ;-)
Actually that is not true at all.

Note, the 3 variations below ..... all 3 work fine.

If (Button = 1)
Go to and Stop (20)
Else If (Button = "2")
Go to and Stop (30)
Else If (Button eq "3")
Go to and Stop (35)
End If

The first does a numeric comparison.
The second does a numeric comparison of the numeric value of the string.
The third does a string comparison.

If there are spaces or other non-numeric characters in a string then it
will be numerically evaluated as zero, if there are no non-numeric vales
then the number value of the string will be use thus "23" will be 23 but
" 23" will be numerically zero.

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [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 helpatchinwag [dot] com


Replies
  RE: FLASH: HELP! Variable syntax, "H�glund, Johan"

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