Resize Easing Effect : Resize Effect « Effects « Flex






Resize Easing Effect

    

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->



    <!-- behaviorExamples\SparkResizeEasing.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    width="750">
    <fx:Declarations>
        <s:Sine id="sineEasing" easeInFraction="0.3" />
        <s:Power id="powerEasing" exponent="4" />
        <s:Move id="moveRight" target="{myImage}" xBy="500" duration="2000"
            easer="{powerEasing}" />
        <s:Move id="moveLeft" target="{myImage}" xBy="-500" duration="2000"
            easer="{sineEasing}" />
    </fx:Declarations>
    <mx:Image id="myImage" source="@Embed(source='a.jpg')" />
    <s:Button label="Move Right" x="0" y="100"
        click="moveRight.end();moveRight.play();" />
    <s:Button label="Move Left" x="0" y="125"
        click="moveLeft.end();moveLeft.play();" />
</s:Application>

   
    
    
    
  








Related examples in the same category

1.Using Resize effect to enlarge an image on mouse-overUsing Resize effect to enlarge an image on mouse-over
2.Two Resize effects for a Button controlTwo Resize effects for a Button control
3.Define effect using ActionScript with ResizeDefine effect using ActionScript with Resize
4.Use ActionScript to set up resize effectUse ActionScript to set up resize effect
5.Use Resize effect when the user moves the mouse over itUse Resize effect when the user moves the mouse over it
6.Add resize effect to transitionAdd resize effect to transition
7.Panel resize effectPanel resize effect
8.Use two Resize effects for a Button control.Use two Resize effects for a Button control.
9.Add a transition to use a Wipe effect and a Resize effect with an easing function to animate the transition from view state to view stateAdd a transition to use a Wipe effect and a Resize effect with an easing function to animate the transition from view state to view state
10.Resize Image EffectResize Image Effect
11.Reverse Resize EffectReverse Resize Effect
12.Apply a Resize effect to multiple Button controls by using data binding with the effect's targets propertyApply a Resize effect to multiple Button controls by using data binding with the effect's targets property
13.Resize effectsResize effects
14.Using the Resize effect on an Image controlUsing the Resize effect on an Image control
15.Resizing a button that starts small and grows biggerResizing a button that starts small and grows bigger
16.Increase width and height of a Button control by 15 pixels each time the user selects itIncrease width and height of a Button control by 15 pixels each time the user selects it
17.Resize Target by PropertiesResize Target by Properties