Flasher Archive

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


Subject: Re: FLASH: variable/go to problems
From: Laura Mollett
Date: Thu, 9 Mar 2000 05:56:13 GMT

> Is there any reason that the following would cause a movie to go to
> "framelabel1" regardless of the value that "variable" contains?
>
> i.e. variable = "" then movie goes to framelabel1 or if variable
> ="valuestuff" the movie also goes to framelabel1.
>
>
> On (Release)
> If (variable= "")
> Go to and Play ("framelabel1")
> End If
> End On

What happens to me is that I think I've set a variable, but the movie isn't
understanding where the variable is. For example, on the main timeline, I've
set a variable "x", and then in a mc, I say If (variable = "") (the quotes
for whatever mc it's addressing at the moment) and I expect it to return
something like If (x = "themovieclipi'min") then goto frame 1 - but since
flash can't find the value for x as it's on the main timeline, then it sets
x equal to just whatever... set x = whatevermcyourin and no matter what you
do, it's *always* equal.

Try first making sure your target is all perfect. If (/:variable = "") for
the maintimeline or If (/mc/:variable = "") if it's in a mc, and if that
doesn't help, try adding evaluates or eq instead of equal or both things
(make sure what kind of value you need it to return, a mc name is a string).
So you might need: If (eval(/:variable) = "") or If (eval(/:variable) eq "")
- either case, the reason is probably that flash thinks those things are
equal even when they shouldn't be. And if that doesn't help either, try
setting a variable equal to "/:mc" and then say: If (thevariableyoujustadded
= "") So you first sett it equal to a name so it can go find it, and then
find the value of it. If that makes any sense, I hope it helps :)

Laura

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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