Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] Variables |
From: | Gregg Caines |
Date: | Wed, 24 Jan 2001 03:24:58 -0000 |
You've got the syntax right for making the variable global (usable by
all clips on the stage) by putting the /: in front of it.
Your problem is that you set it to "1" (which is a string, with one
character, which is a 1). Use trace("textstatus is" & /:textstatus) to
verify that the value is in there.
Next, in your if statement, put If (/:textstatus eq "1") ...
You must test strings using 'eq'. Otherwise you can can set the variable
to be 1, not "1", and use =
I'd also recommend using Visible instead of Alpha, where visible is
either true or false.
Hopefully Flash 5 hasn't mangled my memory too much...
---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesneometrixsystems [dot] com
> When any menu button is pressed, it sets the variable:
>
> Set Variable: "/:textstatus" = "1"
>
> Elsewhere a MC that is present has this code, trying to get the MC
> called Text1 to change it's Alpha to full on:
>
> If ("/:textstatus"=1)
> Set Property ("/Text1", Alpha) = "100"
> End If
> --- Phil Matt
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]