Flasher Archive

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


Subject: Re: FLASH: Re: random variable typing
From: John Croteau
Date: Sat, 9 Oct 1999 06:17:56 +0100

Hi Guys,

Sometimes it is much easier to understand something and use it than to
explain it. However I think by now being able to explain this variable
equation protocol of Flash I understand it a little better. At least I
think my explanation will make it more clear and I have a better example
:-)

If an item is in quotes it will not be evaluated. If on the left that is
the name of the variable. If on the right then it is a literal string.

So the norm is
Set Variable: "Variable" = "StringLiteralValue"
or
Set Variable: "Name" = "John"

Therefore the variable Name has its value set to the literal String
John, quotes signifies a literal string on the right and a literal
variable on the left.

If the left is not a literal variable then it is a 'variable of the
variable'. Then the Name on the left is not being set to the equal the
right side of the equation, but rather the value of the variable Nmae
(on the left) will be set to the value on the right.

So in the following:
Set Variable: "Name" = "FirstName"
Set Variable: Name = "John"

Name --> FirstName
FirstName --> John

Literal Variable - a variable on the left side of the equation in a Set
Variables action that is enclosed in quotes. A literal variable is the
actual name of the variable and is only required to be in quotes (in
Flash) when on the left side of the equation. If you do not enclose a
variable on the left side (Variable Box) of a Set Variables equation
then the variable entered in the box is not the variable of the Set
Variable equation. The value of the entered variable name will be the
actual left hand variable for the equation.

Without seeing the example this is very difficult to understand and if
anyone can improve the wording please let me know.

This is a bit difficult to understand at first but makes Flash Set
Variable equations much more flexible because you can have both sides of
the equation being evaluated in a single expression.

--
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
  FLASH: Re: random variable typing, M T

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