actionscripting the blur/glow effects
January 7th, 2009 by
jack
i want an effect where when the user's mouse rolls over the text, the text will glow..
i want this done using action script. i could pull it off easy with movieclips tweening and filters, but AS seems like an easier way..
i know i can be done but i dont know how exactly
--------------------
also, how do i redirect people to write an email in flash?
you know?
i remember the AS is something like
email:address@hotmail.com
or something, do i put this in a buttons on (release)? or what?
thanks for all yoru help!
gotoAndLearn.com (http://www.gotoandlearn.com/)
:)
Thanks again
:be:
You can apply filters to text just as easily as movie clips. I only put it into a movie clip so it could receive mouse events. Here is some example code :thumb::
import flash.filters.*;
_root.createTextField("myText", 0, 25, 25, 0, 0);
myText.autoSize = true;
myText.text = "Hello!";
var txtFmt:TextFormat = new TextFormat();
txtFmt.size = 100;
txtFmt.font = "Verdana";
txtFmt.bold = true;
myText.setTextFormat(txtFmt);
var gf:GlowFilter = new GlowFilter(0xCC0000, 100, 7, 7, 5, 3, false, false);
myText.filters = [gf];
and outlando, i dont think you can, i remember seeing that filter effects can ONLY be applied to movie clips and buttons..nothing else. :
#If you have any other info about this subject , Please add it free.# |
Posted in xn--fr0a.com | edit