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

  • Home
  • SEARCH
  • 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 6824803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:56:44+00:00 2026-05-26T21:56:44+00:00

I use Flex 4.5 to do program a simple user interface. I want to

  • 0

I use Flex 4.5 to do program a simple user interface.

I want to add the popups easing animations, especially Elastic (spark.effects.easing.Elastic).

Is there a way to change the attribute of the Elastic animation? it bounces back and forth too much, is there a way to change that behavior or to mimic that behavior using some other easing animation that does provide the options I need ?

Example code can be found at:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/effects/easing/Elastic.html

thanks

  • 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-05-26T21:56:44+00:00Added an answer on May 26, 2026 at 9:56 pm

    You can subclass the spark Elastic ease class to expose a couple more customization variables like this:

    package
    {
        import mx.effects.easing.Elastic;
        import spark.effects.easing.Elastic;
    
        /** Expose some properties on the spark Elastic easer */
        public class MyElastic extends spark.effects.easing.Elastic
        {
            /**
             *  (Copied from the ASDoc for mx.effects.easing.Elastic.easeout()):
             *  @param b Specifies the initial position of a component.
             *  @param c Specifies the total change in position of the component.
             *  @param d Specifies the duration of the effect, in milliseconds.
             *  @param a Specifies the amplitude of the sine wave.
             *  @param p Specifies the period of the sine wave.
             */
            public var b:Number = 0;
            public var c:Number = 1;
            public var d:Number = 1;
            public var a:Number = 0;
            public var p:Number = 0;
    
            override public function ease(fraction:Number):Number
            {
                return mx.effects.easing.Elastic.easeOut(fraction, b, c, d, a, p);
    
                // if these properties aren't enough control then you can copy and paste 
                // the code from mx.effects.easing.Ellastic.easeOut() directly into this 
                // overridden method and tweak the code for your needs from there.
            }
        }
    }
    

    If those variables don’t provide the control you are looking for then you could just copy and paste the code from mx.effects.easing.Ellastic.easeOut() into MyElastic.ease() and have complete control over the tweaks you need to make there.

    Here is a simple sample application that demonstrates this subclass:

    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:local="*">
    
        <s:Button click="mover.play()" label="move" x="100" y="50" />
    
        <s:Button id="btn" y="100" x="50" />
        <s:Button id="btn2" y="150" x="50" />
    
        <fx:Declarations>
            <s:Parallel id="mover">
                <s:Move target="{btn}" xBy="100">
                    <s:easer>
                        <s:Elastic />
                    </s:easer>
                </s:Move>
                <s:Move target="{btn2}" xBy="100">
                    <s:easer>
                        <local:MyElastic a="3" />
                    </s:easer>
                </s:Move>
            </s:Parallel>
        </fx:Declarations>
    
    </s:WindowedApplication>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm a very new user to flex (never use flex, nor flashbuilder, nor action
i want to use Ant task to compile flex project(with many libraries, modules) i
I'm trying to use flex and bison to create a filter, because I want
We want to use flex tech to replace our old dashboard ui. Could you
Use Flex 4.5.1 and when add icons to the button is so curve effect
Is it possible to use Flex 3 component/code inside Flash (cs4) SWF file ?
I am learning how to use Flex with Adobe Flash Builder 4 standalone. I
I'm looking at a new project and we are wanting to use Flex (to
How do I reference a fla component from an actionscript project? I use flex
Is it possible to use the Flex Framework and Components, without using MXML? I

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.