Flasher Archive

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

Subject: Re: [flasher] Actionscript and Variables
From: Muzak
Date: Sat, 27 Jan 2001 06:30:23 -0000

Set the value of the variable somewhere it can always be accessed - preferrably the main timeline (_root). If you keep variables in
one MC, but move the playhead to a keyframe where that MC no longer excists, the variables are gone as well.

so try:
_root.helpbutton = true
_root.helpbutton = false

Then to check that value from anywhere in the movie use:

//_root.helpbutton -- true
if (_root.helpbutton){
//do your thing


//_root.helpbutton -- false
if (! _root.helpbutton){
//do your thing

if you want to check from another level movie, use _level0 instead of _root


----- Original Message -----
From: "Nick Calladine" <nickcalladineatemail [dot] com>
To: "flasher from chinwag" <flasheratlists [dot] chinwag [dot] com>
Sent: Saturday, January 27, 2001 5:26 AM
Subject: [flasher] Actionscript and Variables

> I have a button which activates a movie clip
> I want to set a state by the master button on the main timeline
> helpbutton = false
> once pressed i want to set
> helpbutton = true
> and call a movie clip with a second button which also needs to see the
> helpbutton variable
> how do i achieve this..
> I have try to set a trace in the movie clip on the button but it does not
> see the variables..
> any help links or tutorial or even fla would be most welcome

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