|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Buttons
Hi everyone, i got another Q.
i already have 5 buttons on my page, they are working properly, now I want to make the button stay in the down image when its pressed, and have go back to its original image when something else is clicked, I cant figure it out. Any suggestions? P.s. Without having my buttons converted to movieclips, can it be done? |
|
#2
|
|||
|
|||
|
Not without them being MovieClips since you have no way of forcing a button to stay in its down state.
|
|
#3
|
|||
|
|||
|
button - movieclip
Ok thanks, but then if they are made movie clips I cant link the other swf pages because i get an error message that i cant use button instances on a movieclip.
|
|
#4
|
|||
|
|||
|
The error you are getting is probably stating that you can't place "on" event handlers on MovieClips. This would mean you have placed some code directly on the MovieClip instance like:
Code:
on(release)
{
trace("Booya!");
}
The way to do the same thing with a MovieClip is to (a) give it an instance name via the properties panel i.e. btn_bob and then (b) place this code on the keyframe that it appears, note that I said the keyframe and do not mean ON the MovieClip like you did with the button: Code:
btn_bob.onRelease = function():Void
{
trace("Booya!");
}
|
|
#5
|
|||
|
|||
|
Score!
No, wait! I got it, i just add the following code to the frame where it loads
stop(); { loadMovieNum("name.swf", 9); } thanks for everything. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Buttons |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|