Help - Search - Members - Calendar
Full Version: Rollover Help
Pixel2Life Forum > Help Section > Adobe Flash
Wowzers
I need help doing this rollover type effect.. Basically, when the user rolls over a part of the stage I want it to become clickable and display text so the user knows what it's for, then when they roll off that certain part I want it to go away.

I have 3 parts to this stage. One says previous which will make the gallery go to the previous image, one browse which will open a whole gallery then the next being next which would change the images to the next.

Anyone know how I would accomplish this? Thanks.
GRIMESD
QUOTE (Wowzers)
I need help doing this rollover type effect.. Basically, when the user rolls over a part of the stage I want it to become clickable and display text so the user knows what it's for, then when they roll off that certain part I want it to go away.

I have 3 parts to this stage. One says previous which will make the gallery go to the previous image, one browse which will open a whole gallery then the next being next which would change the images to the next.

Anyone know how I would accomplish this? Thanks.


Hi Wowzers, I am not sure how you are at action script so I will give you a very summed up version of what to do using AS3.

Create a empty movie clip on the stage >
var emptyMovie:MovieClip = new MovieClip;

Then give it a height, width, and give it x and y properties to place it where you want on the stage, and then create a event listener for the mouse to roll over that "movie clip" and have text appear.

emptyMovie.addEventListener(MouseEvent.MOUSE_OVER, textAppear);

function textAppear(event:MouseEvent):void {

}

and then inside the function tag, write the script to add text to the stage through actionscript and whoila!, you have a text rollover using code only.

------------------------------------------

Or you can create a flash rollover using the built in rollover function of flash. Create a "empty" button on the stage. Convert to a button symbol. Double click into symbol, add keyframe to "rollover" section, then add text somewhere on the stage on the rollover stage.

-------

Hope this helped!

P.S. There maybe a typing error here or there, I did this at work in notepad, don't have flash here rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.