PDA

View Full Version : flash permanent rollover, rollout state



johnrobinm
April 27th, 2005, 01:06 AM
hi,

was wondering how you could make a rollover/rollout over an swf and change the image without reverting back to the original image. For instance, or more specifically,

How would you create the effect where you have a permanent change on a mouserollover so that it does not go back to the original design? I made two movie clips and I put them together so that now when the mouse rollsover or you click on the original movie clip, the second movie clip is played, but the second movie clip gets cut off as soon as the mouse moves away and reverts to the original movie clip. I also wanted to stop the second movie clip from looping or replaying if clicked upon - just play once. Any suggestions? Here's the url to the flash file:
http://www.southerncaliforniarealestateagent.com/banner001.html (http://www.southerncaliforniarealestateagent.com/banner001.html)
Thanks!
John-Robin

Meatwad
April 27th, 2005, 02:22 AM
First of all, let me clerify that my suggestion is a what I think would work, im not a advanced flash users so maybe my suggestion is all wrong, but I'll give it a try.

I would make the image on your button on separate layers and on the top layer put a white block button that is as big as the hit area you want, then change it alpha to 0%. Then i would give it actionscript that looks like this


on (release) {
gotoAndPlay("5");

}
and in frame number 5 show the new stuff that you wanna show when the button is rollover and then, at the end frame but a stop command.

About the surfer movie, is it a MovieClip ? in that case you might wanna put a stop in the end frame aswell, then it will only play once.

Hope this helps, once again im not a good flash user.

Good Luck