actionscripting the blur/glow effects

January 7th, 2009 by jack

  • i just have some text in a movieclip..

    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!


  • Welcome :thumb:.


  • Even though this question has been answered, I thought I'd point out that at the site I'm linking to, there's a tutorial on how to do just this very thing.


    gotoAndLearn.com (http://www.gotoandlearn.com/)

    :)


  • Cheers! I knew it could be done: I've done it, I just wanted to see how it's done with AS at runtime...

    Thanks again
    :be:


  • Glad I could help you Blenderben :hoser:.

    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];


  • :thumb:


  • PERFECT THE CANADIAN! thanks!

    and outlando, i dont think you can, i remember seeing that filter effects can ONLY be applied to movie clips and buttons..nothing else. :


  • Anyone know how to apply the glow directly to the textField, rather than the movieClip the textField is in?







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about actionscripting the blur/glow effects , Please add it free.

    Posted in xn--fr0a.com | edit

    Techniques for Enhancing Self Esteem with Relaxation Getting the Best Price on Your Next Television