Hi i have a problem, I have a set of pictures that come onto the screen in a flashy way (as movies) , anyway after they come in, i want them to behave as buttons , how would i go about doing this? Any help would be greatful, cheers!!
Change them to buttons on the last keyframe
that didn’t work
what do you mean by “behave as buttons” ?
well i have pictures, that appear, (they are movies) anyway, when they stop moving, I want the user be able to click on them so they can be taken to another page, i also want them to like have a rollover indicator.
Here is the complete list of movie clip event handlers:
MovieClip.onData
MovieClip.onDragOut
MovieClip.onDragOver
MovieClip.onEnterFrame
MovieClip.onKeyDown
MovieClip.onKeyUp
MovieClip.onKillFocus
MovieClip.onLoad
MovieClip.onMouseDown
MovieClip.onMouseMove
MovieClip.onMouseUp
MovieClip.onPress
MovieClip.onRelease
MovieClip.onReleaseOutside
MovieClip.onRollOut
MovieClip.onRollOver
MovieClip.onSetFocus
MovieClip.onUnload
what do you mean by ‘movies’ -movie clips or externally loaded swfs?
You can make a movie clip symbol behave like a button. Use the same Actionscript as you would for a button, but add on(rollOver), on(rollOut) and on(press) actions to give you the up, over and down states.
You need to give your movieclip an instance name and use it in your actionscript. Here is an example using frame labels within the movie clip, which has been given an instance name of “buttonMC1”.
on(rollOver){
_root.buttonMC1.gotoAndPlay(“over”);
}
on(press){
_root.buttonMC1.gotoAndPlay(“down”);
}
on(release){
_root.gotoAndStop(“frameLabel”);
}
You can get creative with what happens in the buttonMC1 timeline at the “over” and “down” frame labels.
You need to give each movieclip you add the script to its own unique instance name.
I hope that’s what you’re looking for.
Regards
Carixpig
Hey what about throwing a transparent button on top of them? I dont know how complicated of an effect you are trying to achieve is but it may work. Although you wont neccesaarily be able to do the up down and over stuff as easy…ahh i dunno