Jump to content


Photo

Rollover Help


  • Please log in to reply
1 reply to this topic

#1 Wowzers

Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 03 July 2009 - 11:58 AM

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.

Edited by Wowzers, 03 July 2009 - 11:59 AM.


#2 GRIMESD

GRIMESD

    Young Padawan

  • Members
  • Pip
  • 10 posts
  • Gender:Male
  • Location:Upstate New York
  • Interests:I have been working with web design for a few years now and recently gained much interest in flash. I am self-teaching myself AS3 while also giving tutorials to help others out with what I have learned.

Posted 19 August 2009 - 08:00 AM

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 :)

Edited by GRIMESD, 19 August 2009 - 08:00 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users