-
hi,
Your help will be much appreciated.
I'm doing a site at the moment with a few popup menu's that have a open and close transition.
i am trying to work it so if you hit a different button it closes ne exisiting popup menu movie clips, clearing the screen for the menu movie clip that has just been clicked.
to do this i've added variable within the movie clips's ie;
Set Variable: "menuload" = "2"
then on the button i've added.
If (menuload=2)
Begin Tell Target ("/item2")
Go to and Play ("item2end")
End Tell Target
End If
item2end being a frame label which is the closing transition.
my prob is that i can't get flash 4 to goto and play the frame label in item2 (item2end), instead it doesn't do ne thing. what am i doing wrong, and
are there ne other suggestions for how i can get a similar effect?
many thanks
acemeister
-
Instead of using actionscript, I use invisible buttons to do this. I create an invisible button to surround the menu that I want to go away so as soon as the mouse leaves the menu, it does go away. If it is a "drop-down" menu, I will code it to tell the movie clip to "Go to and play" the frame that begins the exit portion of the menu. You can also code the buttons on other MC's to do the same thing using Tell Target.
I hope I am understanding you correctly. If not, I'm sure one of the moderators will. They always pull through for me.
-
You've set the variable in a movieclip as a local variable, then tried to use it as if it were a global variable. You have to target it.
In your case, this is how you'd do it:
Set Variable: "/:menuload" = 2
This will set the variable in the root of the movie to "2". Then you can check it by using:
If (/:menuload=2)
...
Get the picture? Alternately, you could target the movieclip that contains menuload like so:
Set Variable: "/myClip:menulaod" = 2
etc.
hth,
Deep (just a guy)
<pre><font face="courier" size="2">,-----------------------------.
| Pradeep Kumar Nair, B.Math |
| Graphic/Multimedia Designer |
| ICQ#: 39102360 |
| Medius Communications, Inc. |
| http://www.medius.com |
`-----------------------------'</font></pre>
Moderator - i/us Flash Forum
-
thank you so much for your help Deep. i was ripping my hair out, and then you came along bringing order to my chaos. I fear deep that you are more than just a guy, but a Demi God.
thanks again
acemeister
-
[img]/infopop/emoticons/icon_smile.gif[/img]
Rumours of my deification have been greatly exaggerated. Seriously, I'm just a guy. But I'm glad I could be of help.
hth,
Deep (just a guy)
<pre><font face="courier" size="2">,-----------------------------.
| Pradeep Kumar Nair, B.Math |
| Graphic/Multimedia Designer |
| ICQ#: 39102360 |
| Medius Communications, Inc. |
| http://www.medius.com |
`-----------------------------'</font></pre>
Moderator - i/us Flash Forum