Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: random variable typing in Flash? |
From: | John Croteau |
Date: | Wed, 6 Oct 1999 19:32:47 +0100 |
Hi MT,
> Here's what I'm talking about, by the way:
> Set Variable "whichItem" = "redPants"
> Trace(whichItem)
> RETURNS "redPants"
> Set Variable whichItem = "redPants"
> Trace(whichItem)
> RETURNS nothing
> Set Variable "whichItem" = "redPants"
> Trace("whichItem")
> RETURNS whichItem
> and throughout all of these, an empty field named whichItem, on the stage,
> never contains "redPants". So what's up? If whichItem is a variable, it is an
> expression, and to my way of thinking, should be treated as such (never in
> quotes). However, to put a string in it, it seems like it needs to be quoted
> as a literal. Then, on the other hand, when you trace it, you DON'T put quotes
> around it. So what's the deal?
The answer is D none of the above;
Set Variable: "whichItem" = "redPants"
Trace (whichItem)
RETURNS redPants which is the value of whichItem
And a Text Field with whichItem as its variable will also display
redPants.
When setting a variable the ABC switch should be on for the top (left
side of the expression) unless it is an expression.
In Trace here you are looking for the value of whichIten so it should be
an expression.
See Variables for more details -->
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/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managerchinwag [dot] com. Problems to: helpchinwag [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-managerchinwag [dot] com
Replies
FLASH: random variable typing in Flash?, M T
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]