Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8671177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:53:09+00:00 2026-06-12T18:53:09+00:00

In Flex 3 you could do a glow effect like so: <mx:Glow id=glowImage duration=250

  • 0

In Flex 3 you could do a glow effect like so:

    <mx:Glow id="glowImage" duration="250"
             alphaFrom="0" alphaTo="1"
             blurXFrom="0.0" blurXTo="3.0"
             blurYFrom="0.0" blurYTo="3.0" strength="2"
             color="0xcc0000" target="{this}"/>

    <mx:Glow id="unglowImage" duration="250"
             alphaFrom="1" alphaTo="0"
             blurXFrom="3.0" blurXTo="0.0"
             blurYFrom="3.0" blurYTo="0.0" strength="2"
             color="0xaaaaaa" target="{this}"/>

And the MXML:

<mx:Image rollOverEffect="{glowImage}" rollOutEffect="{unglowImage}"/>

In Flex 4 we are supposed to use the AnimateFilter with a GlowFilter (recommended by Adobe). Here’s what I’ve come up with:

    <s:AnimateFilter id="glowAnimation" 
                     target="{this}"
                     duration="250"
                     >

        <s:bitmapFilter>
            <s:GlowFilter color="#ff0000" strength="3" quality="3" />
        </s:bitmapFilter>

        <s:motionPaths>
            <s:SimpleMotionPath valueFrom="0" valueTo="4" property="blurX"/>
            <s:SimpleMotionPath valueFrom="0" valueTo="4" property="blurY"/>
        </s:motionPaths>

    </s:AnimateFilter>

And the MXML:

<mx:Image rollOverEffect="{glowAnimation}" rollOutEffect="{unglowImage}"/>

The problem is that this animates once and then the effect is removed where as the mx effect applies the filter and keeps it applied.

~~~ UPDATE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RIAStar’s answer is right and I want to add the reason why from this video I just stumbled upon [1]. It describes the differences between Animate and AnimateFilter. AnimateFilter is transient. It applies the filter and when it’s done it removes it. Animate applies the values to the target permanently.

We also should be aware that in Flex 4 not all effects support triggers.

From the AnimateInstance class:

override public function startEffect():void
{  
    // This override removes EffectManager.effectStarted() to avoid use of
    // mx_internal. New effects are not currently triggerable, so
    // this should not matter
}  

What this means is that we cannot rely on rollOverEffect to trigger the effect bound to it. We must call effect.play() on the rollOver event.

So that means when we use the Animate class we also need to change this:

<s:Image rollOverEffect="{glowImage}" rollOutEffect="{unglowImage}"/>

to this:

<s:Image rollOver="glowImage.play()" rollOut="unglowImage.play()"/>

Note when using multiple related effects it is best practice to call end() on a playing effect before calling play() on it’s related effect.

Also, note when using a single effect, as in the answer, reverse it rather than end it like so glowAnimation.play(null, true).

<s:Image rollOver="rollOverAnimation.play()" rollOut="rollOverAnimation.play(null, true)"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:53:10+00:00Added an answer on June 12, 2026 at 6:53 pm

    I don’t know about AnimateFilter, but this solution using a simple Animate effect should work nicely:

    <s:Animate id="glowAnimation" target="{glow}" duration="250">
        <s:motionPaths>
            <s:SimpleMotionPath valueFrom="0" valueTo="10" property="blurX"/>
            <s:SimpleMotionPath valueFrom="0" valueTo="10" property="blurY"/>
        </s:motionPaths>
    </s:Animate>
    
    <s:Image rollOver="glowAnimation.play()" 
             rollOut="glowAnimation.play(null, true)">
    
        <s:filters>
            <s:GlowFilter id="glow" blurX="0" blurY="0" />
        </s:filters>
    </s:Image>
    

    Note that I set the initial values of blurX and blurY to 0. This is necessary because otherwise it will display the default 4 as long as you don’t roll over the image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have flex advancedDataGrid (could use dataGrid if that works better, though i like
In flex 3, with List component, you could add an effect to the itemChangeEffect
Could you suggest me a good Flex component for the widget shown in picture
Could anyone tell me if it is possible to use the flex 4 framework
Using Flex 3, I would like to take an image snapshot such as this:
Could you confirm me that: Flex 4 is compatible and only compatible with Flash
when i open .mxml flex file in eclipse it gives error Could not open
The application which developed by AIR(flex builder),Could connect with server(php) side.
I am looking for a flex component that could allow me to edit rich
Is there a library or plugin that could be added to a Flex project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.