#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    297
    Rep Power
    14

    How to make button with text roll over?


    Can anyone help me how to make a button with text roll over in Flash ? I mean a peace of text which changes its color on roll over and refers to a anorther url with onClick ? Maybe there is a tutorial on this somewehere?

    Kippie
  2. #2
  3. No Profile Picture
    flash junkie
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    CO, USA
    Posts
    172
    Rep Power
    12
    if you're talking about making linked text in a text field change colour onRollOver, it's pretty much not possible.. if all you want to do is make a button out of text, try this:

    grab your text tool (T)

    type out what you want your button to say

    select your arrow tool (V) - your text should automatically be selected. if it's not, select it.

    convert it to a symbol (F8 or Insert>>Convert to symbol)
    choose button and call it whatever you want

    double click into your text (which is now a button) - you'll see one layer and 1 keyframe (with over, out, down and hit frames)

    Select your text frame and add three keyframes (F6 thrice or Insert>>Keyframe) you should have your text in all four frames now.

    Select the second frame and select your text. In your properties panel change the colour of your text. this will be the over state.

    Select the third frame and change the colour of your text to whatever you want your down state to be.

    in the fourth frame, get your rectangle tool and draw a rectangle around your text. This will determine the "hit area" of your button. in other words, where the mouse has to be in order to trigger the over and down states. Once you have your rectangle, you can delete the text on the fourth frame.

    Test your movie (CTRL-ENTER) and when you roll over and press your text you should see it change colour. To make this go to a url, make sure you're on your main timeline, select your text button and put the following script in your actions (to pull up the actions panel, hit F9). To make it so you can type stuff in manaully, hit CTRL+SHIFT+E (for expert mode):

    on(release){
    getURL("http://www.yoururl.com","_blank");
    }

    This is the most simple way to make a button try consulting the flash help for different methods/ideas.

    cheers,

    bret
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    297
    Rep Power
    14
    Thanks Bret, thanks a lot !!

    Kippie

IMN logo majestic logo threadwatch logo seochat tools logo