Flasher Archive

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


Subject: Re: FLASH: Re: random variable typing
From: 2Nerotik
Date: Fri, 8 Oct 1999 18:01:22 +0100

There are 2 ways of looking at this:

1) IF whatever is already defined as a variable then variableName will
equal the
value of whatever.


2) IF whatever is NOT already a defined variable then variableName will
equal the
text "whatever"


ex.1 "whatever"=20 then "variableName"="whatever" makes "variableName"=20


ex.2 whatever NOT a variable then "variableName"="whatever" makes
"variableName"="whatever" where "whatever" is treated as plain text.


when using numbers they should always be as an expression, not a string literal

This is the way I understand it and I hope this helps.

If I'm wrong on this them John or Iceman can correct me and set us straight.


At 08:34 AM 10/8/99 -0700, M T wrote:

>Thanks again, John. I appreciate the feedback on the variables. However,
>neither you nor anybody else has answered my real question:
>
>WHY is this the syntax for setting a variable:
>
>"variableName"= "whatever"
>
>A variable is an expression. WHY is it in quotes? The syntax above would
>seem
>to suggest you were trying to set one string equal to another, and would give
>you an error in probably any program except Flash. It DOESN'T MAKE SENSE.
>
>MT

.oOo.
|| Nobody will ever win the battle of the sexes.
|| There's too much fraternizing with the enemy.
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org


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]