|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
need quick help with button
Hi, I've been using flash mx for quite some time on just animating and a friend of mine just asked me to make a flash based website similar to URL I know how to make simple buttons like mouse over lights up or something, and direct to url and stuff but i want the button so when you click on it, a menu drags out like the website URL
thanks |
|
#2
|
|||
|
|||
|
To do this you must create a new movieclip. In the movieclip create the button, the animation of the menu opening, the open menu state with all the menu buttons, and the antimation of the menu closing. (in this order)
Label the first frame of each animation eg: "closed", "opening", "open", "closing". Put a stop() at the last frame of the "closed" and "open" animations. Now assign mouseclick actions to the main button in "open" and "closed" animations so that it redirects the timeline to the begining of the desired animation. In the 'closed' animation assign: on (release) {gotoAndPlay("opening")}; In the 'open' animation assign on (release) {gotoAndPlay("closing")}; This will make the menu expand and collapse, for the buttons in the menu, just do what you were doing before just be sure to have the actions for them in the "open" animation. |
|
#3
|
|||
|
|||
|
action script looks interesting, is there a website to learn about it?
|
|
#4
|
|||
|
|||
|
by the way, movieclip meaning new scene?
|
|
#5
|
||||
|
||||
|
no, a movie clip is an object within a scene. Read the flash help. There's also a tutorial dealing with movie clips under help.
|
|
#6
|
|||
|
|||
|
Quote:
how would i do that? and also i get this error trying to do the steps above, Symbol=Symbol 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances on (release) {gotoAndPlay("opening")}; Last edited by go_racecar : August 5th, 2003 at 02:22 PM. |
|
#7
|
||||
|
||||
|
you can make a movie clip act like a button once you place it on the stage. In the properties window, on the far left there is a drop down, change it to button. That should fix your error.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > need quick help with button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|