Flasher Archive

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


Subject: Re: FLASH: variable question
From: Robert Bleeker
Date: Wed, 10 May 2000 01:46:52 +0100

Hi Ilia,

Best way I find is to create a completely empty MovieClip and call it
"global", then place it on your main timeline ( I usually place it slightly
above the stage so you can see the little white dot). Make sure it is in its
own layer and available throughout your movie.

Now you can put variables into that MC from anywhere by simply using:

Set Variable "/global:myVariable"

and when ever you want to read the variable again simple:

if (/global:myVariable)
blah blah....


I use the global MC so I can reset the variable when needed.

Robert


on 10/5/00 9:49 AM, Ilia Pasymansky at iliap75athotmail [dot] com wrote:

> Hello!
> do we have something like a global variable in Flash??
> i have a variable on the looping frames.. something like:
> frame1
> Set Variable: "x" = Random ( 3 )+1
> frame 3
> If (x=1)
> Go to and Play (4)
> Else
> Go to and Play (1)
> End If
>
> Now!! from the button on the different layer i want to change "x"!!
> and so , how would i do this ??
> i think i should target "x" on their level..
> but i can not figure out how to do this..?
> something like:
> On (Release)
> Set Variable: (_level10:"x" = random(10)+1)
> End On
> ???????
> Thank you
> Ilia


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

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


Replies
  Re: FLASH: variable question, Helen Triolo

Replies
  FLASH: variable question, Ilia Pasymansky

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