Set WipeLeft and WipeRight with setStyle method : Wipe Effect « Effects « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Effects » Wipe Effect 




Set WipeLeft and WipeRight with setStyle method
Set WipeLeft and WipeRight with setStyle method
        
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        private function changeEffect():void {
            if (myButton.getStyle("mouseUpEffect"== myWR) {
                myButton.setStyle("mouseUpEffect", myWL);
            }
            else if (myButton.getStyle("mouseUpEffect"== myWL) {
                myButton.setStyle("mouseUpEffect", myWR);
            }
        }
      
    </mx:Script>
    <mx:WipeRight id="myWR" duration="1000" />
    <mx:WipeLeft id="myWL" duration="1000" />
    <mx:Button id="myButton" label="My Button" click="changeEffect();" mouseUpEffect="{myWL}" />
</mx:Application>

   
    
    
    
    
    
    
    
  














Related examples in the same category
1.WipeLeft for Button rollOverEffectWipeLeft for Button rollOverEffect
2.Play the WipeLeft effect each time the selected tab changesPlay the WipeLeft effect each time the selected tab changes
3.ActionScript and WipeLeft effectActionScript and WipeLeft effect
4.A wipe down effect trigger of the target componentA wipe down effect trigger of the target component
5.Define a set of wipe effects that Flex executes when the user toggles the chart's visibilityDefine a set of wipe effects that Flex executes when the user toggles the chart's visibility
6.Use Wipe effect when creating a Button completelyUse Wipe effect when creating a Button completely
7.Create the WipeLeft effect in ActionScriptCreate the WipeLeft effect in ActionScript
8.A custom mask with a WipeLeft effectA custom mask with a WipeLeft effect
9.Use Wipe effect as part of a transition that changes the font color of a button control from black to redUse Wipe effect as part of a transition that changes the font color of a button control from black to red
10.WipeLeft transitionWipeLeft transition
11.WipeRight and ViewStackWipeRight and ViewStack
12.Fade, Dissolve, Iris, Zoom, WipeRight, WipeLeft, WipeUp, WipeDownFade, Dissolve, Iris, Zoom, WipeRight, WipeLeft, WipeUp, WipeDown
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.