Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Basic Variables (was Re: FLASH: RE:random variable typing) |
From: | John Croteau |
Date: | Sat, 9 Oct 1999 05:40:58 +0100 |
Hi Guys,
Nerotik your second example and statement is incorrect:
> 2) IF whatever is NOT already a defined variable then variableName will
> equal the text "whatever"
Not true:
> ex.1 "whatever"=20 then "variableName"="whatever"
> makes "variableName"=20
Nope variableName would be whatever.
Set Variable: "whatever" = "20"
Set Variable: "variableName" = whatever
Makes variableName equal to 20
For the right side of the equation if you want a literal string then put
it in quotes or use the ABC button which adds quotes automatically.
The following work the same because Flash is data typeless:
Set Variable: "whatever" = "20"
Set Variable: "value" = whatever + 10
Value is 30
Set Variable: "whatever" = 20
Set Variable: "value" = whatever + 10
Value is 30
Set Variable: "whatever" = "20"
If (Whatever) would evaluate as true since whatever is not zero.
Whether the value of whatever is evaluated as a numeric, a string or a
logical value depends on the what operator it is evaluated with.
See --> Variables 1 again!!!!
http://www.FlashBible.com/Members/ActionScript/Variables.htm
--
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
Re: Basic Variables (was Re: FLASH: RE:r, 2Nerotik
Replies
FLASH: RE:random variable typing, M T
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]