Topic: Text on mouseover button in flash Pages that link to <a href="https://ozoneasylum.com/backlink?for=11380" title="Pages that link to Topic: Text on mouseover button in flash" rel="nofollow" >Topic: Text on mouseover button in flash\

 
Author Thread
FlagMan
Bipolar (III) Inmate

From: Calgary Alberta Canada
Insane since: Dec 2002

IP logged posted posted 01-14-2003 05:08 Edit Quote

I have been working with flash for about 5 hours now, and have my button, which rotates on mouseover, and changed color when you click. Well, to my question...how do you make text appear in a different area when you roll your mouse over the button, like, to discribe were it links to or something like that?

[This message has been edited by FlagMan (edited 01-28-2003).]

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

IP logged posted posted 01-14-2003 12:46 Edit Quote

You mean like a "tool tip"? A fly out sort of description or hint?

First suggestion is: make your buttons self-descriptive so they don't need hints.

Second suggestions is to make an MC that contains a dynamic text field, and set the _visible property to false. Script an onRollOver action on the button to insert the desired text and make the _visible property true. Don't forget to add an onRollOut action to make it invisible again.

This might require more than 5 hours of experience.... but that's how I'd do it (have done it).

FlagMan
Bipolar (III) Inmate

From: Calgary Alberta Canada
Insane since: Dec 2002

IP logged posted posted 01-15-2003 02:36 Edit Quote

wow! slow down there, lol. I am really new to actionscript, I will get a freind to walk me thru it at school. Well, sry for the waste of time.

[This message has been edited by FlagMan (edited 01-28-2003).]

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

IP logged posted posted 01-15-2003 04:35 Edit Quote

"Slow down"???
Heh. You haven't seen me when I'm rushin'


No waste of time. I love thinking up solutions to things like this!

Part of the solution depends on what version of Flash you use: 5 or MX. They handle button events somewhat differently. If you want a floating tool tip that appears close to the mouse, that's a little trickier. If you have a stationary text area the hints would appear in, that's a bit easier. Make a dynamic text field; name it "hints" or something. Add code to the button something along the lines of:
onRollOver {hints="This button returns you to the home page"};
onRollOut {hints=""};//this clears the text field
(Don't copy and paste - this isn't real syntax, just a pointer.)

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 01-15-2003 05:40 Edit Quote
quote:
"Slow down"???
Heh. You haven't seen me when I'm rushin'



He has clearly never been Steved

___________________
Emps

FAQs: Emperor

FlagMan
Bipolar (III) Inmate

From: Calgary Alberta Canada
Insane since: Dec 2002

IP logged posted posted 01-16-2003 02:07 Edit Quote

I got a freind do explain it to me at school in idiot terms, although i will try some of these methods once i get more practise. TH@NX

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

IP logged posted posted 01-16-2003 04:40 Edit Quote

yeah - sure, FlagMan. Post again when you're ready, or have moe questions.

FlagMan
Bipolar (III) Inmate

From: Calgary Alberta Canada
Insane since: Dec 2002

IP logged posted posted 01-28-2003 05:34 Edit Quote

Well, I have been working on flash for the two week or so since I posted this, and have learned alot. There is one thing that anots me tho...When using "Insert--->Create Motion Tween" from the menu, flash always animates it in the shortest way possible...I know there is no way around this, as in in the programming of flash, but it can get kinda annoying. Just to test some stuff, I made a word that should shrink, then expand backward so it looks like it's spinning, but it does a weird flippy thing (<a href="http://members.shaw.ca/brandon.d/test/word.swf" target="_new">here</a> is one I made quickly and in slow-mo to demonstrate) . I know this is easily avoidable by adding one extra frame (the fully shrunk one mirrored right after it) but I am too damn lazy to think and just feel like bitchin' right now. Well, I got to get to bed now, gotta get up at 6:30 tomorrow moring for school (like every other day).



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu