Flasher Archive

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


Subject: Re: FLASH: _xscale & xscale??
From: Dorian Nisinson
Date: Thu, 27 Jan 2000 00:49:48 GMT


Quotes around words, numbers, etc. mean that Flash must deal with the
word as a word. Without quotes around words or numbers, those items must
be evaluated to see what value they contain and that value must be
treated as arithmetic. For example, when you do a set variable (instruct
Flash that the word MyVariable is the container for the value of a
property like _alpha ) amount of transparency like this:

Set Variable: "MyVariable" = Get property ("myMovieClip",_alpha)

Assume that the movie clip with the Instance Name of myMovieClip (note
that the Instance name of the movie clip myMovieClip is in quotes too)
is completely visible when you first have Flash perform this action. So
MyVariable contains the number 100 which stands for 100%, which means
completely visible without any transparency.

Now if you want to have myMovieClip gradually fade every time the users
comes to a particular frame. You want that 100 percent to get smaller
and smaller so you would create another little script that would do that
job.

You create this action:

Set Variable: "MyVariable" = MyVariable - 10
Set Property: ("myMoveClip",Alpha) = MyVariable

What the first line does could be read like this:
Set Variable: "MyVariable" = 100 - 10

The statement after the equal sign contains the same variable but
without the quotes. The reason for this is to let Flash know that we
want it to deal with the contents of MyVariable (that 100 we started
with in this case) and not the container name.

One way to think of it is as an envelope with the variable name on the
outside and the info or data inside the envelope. When you want Flash to
look at the word or words, like a variable name or a path to a movie
clip, or text you are using as text, put quotes around it. Flash will
read the name on the envelope. If you want Flash to look at the contents
of the variable, the data inside the envelope, then don't use quotes.

There is much more to this but it is a start.

Dorian

flash tech wrote:
>
> Hi,
>
> what is the difference between "_" and without "_"? I can't figure it
> out...
> I'm sure this is easy question but I'm new to action script.
> Any idea?
>
> Thanks
>
> Rie
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com

--
Now Available! Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
--------------------------------------------------------------------------------------
FLASHCENTRAL.COM * The Source for Flash Information *
http://www.FlashCentral.com/

Flash Tell Target Tutorial
http://www.FlashBible.com/members/TellTarget/
The Flash Fortune Teller http://www.bway.net/~dorian/FortuneT.htm
Dorian Nisinson Design
http://www.bway.net/~dorian
dorianatbway [dot] net (mailto:dorianatbway [dot] net)
--------------------------------------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: _xscale & xscale??, flah tech

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