cheeky_monkey
04-01-2003, 10:41 AM
I think it's a simple problem but i've probablt not got the syntax correct...
A have a contact-menu button on my stage
(for opening and closing the mov clip called: contact_mov)
I've tried the following, upon click it opens the menu. Good! BUT...
Click the button again and instead of it closing the menu, just opens the menu again (re-runs the open animation).
Please help...
On (Release)
If (/contact_mov:menustatus="false")
Set Variable: "/contact_mov:menustatus" = "true"
Begin Tell Target ("/contact_mov")
Go to and Play ("contacts-menu_open")
End Tell Target
Else If (/contact_mov:menustatus="true")
Set Variable: "/contact_mov:menustatus" = "false"
Begin Tell Target ("/contact_mov")
Go to and Play ("contacts-menu_close")
End Tell Target
End If
End On
Thanks in advance.
A have a contact-menu button on my stage
(for opening and closing the mov clip called: contact_mov)
I've tried the following, upon click it opens the menu. Good! BUT...
Click the button again and instead of it closing the menu, just opens the menu again (re-runs the open animation).
Please help...
On (Release)
If (/contact_mov:menustatus="false")
Set Variable: "/contact_mov:menustatus" = "true"
Begin Tell Target ("/contact_mov")
Go to and Play ("contacts-menu_open")
End Tell Target
Else If (/contact_mov:menustatus="true")
Set Variable: "/contact_mov:menustatus" = "false"
Begin Tell Target ("/contact_mov")
Go to and Play ("contacts-menu_close")
End Tell Target
End If
End On
Thanks in advance.