flash actionscript:
I have some dinamic text and i would like to have a small popUp with further instruction to apear onMouseOver some words in that text. I have been able to do it onMouseOver images but How can i do it over text? Thanks
Thanks kdlad! Could you be more specific? I am not to familiar with adding mousehandlers! Do you mean that mouse will react on a specific word? I'm a bit confused. Could you maybe point me to some tutorial?
click insert/new symbol/movieclip. add a textfield to the movieclip stage. give it an instance name (say tf). drag the movieclip from the library to the main timeline stage and give it an instance name (say mc). you can then use: mc.tf.text="this is your text"; mc.onRollOver=function(){ // add your popup }
Thanks again, I think i didn't frace the problwm properly, waht i need it is tho have the action "my popUp" to triger ONLY onMouseOver a one word (say Over "is) from you example code. With you code as it is the onRollover Function will triger the action over the WHOLE text.
Ok I got the asFunction bit clear but it only works on(press) and i would like my function to triger onMouseOver.
i know no easy way. you'll need to apply movieclips over the key words and attach rollOver behavior to them. i'm pretty fluent with actionscript and i think creating a function that would do this for any textfield/font would take me an hour. i know how to do it, but there are always issues to resolve when using autoSize and that would be necessary to find the location of the various key words.
Don't see what you're looking for? Try a search.
|