Flasher Archive

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


Subject: Re: FLASH: Scripting Syntax
From: John Croteau
Date: Fri, 9 Jul 1999 23:09:47 +0100

Hi Eric,

> Please forgive my ignorance, but could someone please explain to me the
> difference between a String Literal and an Expression?
In Flash if you select String Literal (abc), Flash will automatically
add quotes to a literal string or string variable.

If you select Expression (=) you can have a number (22), a string
("John"), a variable that represent a number (Num) or a string
("chars"), a numeric expressions (x+1) or a string expression ("John " &
"Croteau".
In expressions (=) you must add needed quotes to strings where needed.

In Flash we have a flexible variable typing where the type of a variable
does not have to be pre-defined and strings can be used as numbers and
vice versa.

In "x" = "3" + "4" -- x would be 7
In "x" = "3" & "4" -- x would be 34

+ is a numeric operator so you just do standard addition.
& is a string operator and you treat the 3 and 4 as characters and not
numbers and the characters are concatenated (chained together)

----------- -----------------------
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/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: Scripting Syntax, Eric Smollin

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