This is a discussion on "Flash Text Mousover Buttons" within the Flash & Multimedia Forum section. This forum, and the thread "Flash Text Mousover Buttons are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Flash Text Mousover Buttons
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Flash Text Mousover Buttons
I've been doing web ages for years but I've only started playing with Flash coding this week. I'm currently stumped with how to do a simple text mouseover link in Flash. I've gotten linking to work - but can't figure out how to apply a simple change color mousover affect and surfing forums like this or the Flash tutorials and docs don't seem to cover this exact issue. This is such a newbie question but it's kicking my butt LOL.
thanks Tom |
|
|
|
|||
|
Ok, if your just trying to change the color of the text, what you need to do is to make the text that is your link your button. (highlight it then press F8 for Flash MX). Then you can double click on the text. You will then see the timeline change to Up Over Down Hit. These are similar to links in HTML. Create a Key Frame in the Over frame and change the text's color to the color you want it to be when someone mouse's over it. Also, I would suggest making another keyframe in the HIT frame and drawing a box over the text. This will make it so that the user can click in that box(which is not visible)instead of trying to put their mouse on a small part of the text. I hope that helps you out.
|
|
|||
|
I can make the mouseover work - I can make the text a link - what I'm having trouble with is making the mouseover and link work simultaenously. John with the technique used above to create the mouseover - what do I need to do to make this a working link??? There is the ability to place a link in the properties of the particular frame but that doesn't seem to "take".
|
|
|||
|
ok, after you do that you need to go back to the scene where the button is contained. Then select the button (single click or drag a box around it) and Open up the actionscript window. In the window you need the following code:
|
|
|||
|
Very helpful thanks - I figured out that I wasn't putting the link to the button in the UP portion of the timeline. So now it works - sorta I get a screwed up Mouseover effect and the links are working.
- heres what is not working right - I drew a box around the text in the button and when the mouse pointer approaches the area around the text reaching the button the text changes color indicating the mouseover, but keep moving and as the pointer reaches the text it changes back to it's original color. Also now that you mention it - with the links working now - when I open the actions window there is no GetURL code. |
|
|||
|
MichAv8r, the link code should be on the button itself (i.e. right click the button and actionscript or similiar text), not within it on it's own timeline.
|
|
|||
|
You can download a sample .fla with the following link. [link has been removed by JohnMitch]
|
|
|||
|
Success!
Thanks alot guys - What was killing me is there are three different ways to enter a URL and it was the ability to link in under the Properties of each frame that was getting me. Deleted those links and added the code and it works as desired. |
![]() |
| Tags |
| flash, text, mousover, buttons |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with buttons in flash | VanHype | Flash & Multimedia Forum | 1 | Feb 27th, 2008 22:34 |
| Flash buttons | R8515198 | Flash & Multimedia Forum | 5 | May 20th, 2007 23:53 |
| Flash Buttons | Travis R | Flash & Multimedia Forum | 8 | Nov 21st, 2006 01:31 |
| Help with flash buttons | Tbone5058 | Web Page Design | 1 | Jul 6th, 2005 17:11 |
| buttons text fields | djaccess | Classic ASP | 10 | Sep 29th, 2003 12:19 |