Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get variable in IF statement ??

0 views
Skip to first unread message

Ralph de Groot

unread,
May 15, 2000, 3:00:00 AM5/15/00
to
Hi All,

i hav a movie that loads the menu on level20 and another movie on level5. to
create a way of storing variables i made a MC on level0 named memory
What i want to happen is that when i click a button in the menu it should
check IF a variable is set and then perform the action ELSE to the other
action.
Somehow the button does not read the variable correctly because it keeps
performing the ELSE statement.
I check the variable using a text box and that works....so the variable is
set properly. So why does the "If (_level0/memory:titel eq start)" not
work????

this is the code:
On (Release)
If (_level0/memory:titel eq start)
Begin Tell Target ("_level5")
Go to and Play ("scene_start")
End Tell Target
Else
Unload Movie (10)
Begin Tell Target ("_level6")
Go to and Play ("open")
End Tell Target
End If
Go to and Play ("off")
End On


TNX

RAlph

Danae Stamataki

unread,
May 15, 2000, 3:00:00 AM5/15/00
to
Maybe you have to use quotes (depending on what you want to do, that is)

> On (Release)
> If (_level0/memory:titel eq "start")

hope this helps

daMnae


--------------------------
Danae Stamataki
Flash Designer
First Data Systems
Grammou 71, 151 24 Maroussi
Athens
Greece
Tel. +3016143252-8
Fax +3016143251
www.fdsweb.com

el_diablo

unread,
May 15, 2000, 3:00:00 AM5/15/00
to
What's titel and what's start?
If they both are text variables and their contents should match for If() to
be true, if your path to the title variable is correct then it should work.

"Ralph de Groot" <ra...@lefthandmedia.com> wrote in message
news:8fonnr$2lp$1...@misc.macromedia.com...


> Hi All,
>
> i hav a movie that loads the menu on level20 and another movie on level5.
to
> create a way of storing variables i made a MC on level0 named memory

...

0 new messages