Blur a control : Blur Effect « Effects « Flex






Blur a control

Blur a control
         

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
        
        import mx.effects.easing.Bounce;
      
    </mx:Script>
    <mx:states>
        <mx:State name="bookDetails" basedOn="">
            <mx:AddChild relativeTo="{bookForm}" position="lastChild" creationPolicy="all">
                <mx:FormItem id="isbn" label="new Label" />
            </mx:AddChild>
            <mx:SetProperty target="{title}" name="text" value="New Details" />
            <mx:RemoveChild target="{bookLink}" />
        </mx:State>
    </mx:states>
    <mx:transitions>
        <mx:Transition fromState="*" toState="*">
            <mx:Parallel targets="{[book, bookLink, title, isbn]}">
                <mx:Sequence target="{isbn}">
                    <mx:Blur duration="2000" blurYFrom="0.0" blurYTo="20.0" />
                    <mx:Blur duration="2000" blurYFrom="20.0" blurYTo="0.0" />
                </mx:Sequence>                
            </mx:Parallel>
        </mx:Transition>
    </mx:transitions>
    <mx:Panel title="XML Book" id="book" horizontalScrollPolicy="off" verticalScrollPolicy="off">
        <mx:Form id="bookForm">
            <mx:FormItem label="Label 1" fontWeight="bold" /> 
            <mx:FormItem label="Label 2" fontStyle="italic" />
        </mx:Form>
        <mx:ControlBar>
            <mx:LinkButton label="Click" id="bookLink" click="currentState = 'bookDetails' " />
            <mx:Spacer width="100%" id="spacer1" />
            <mx:Label text="Title" id="title" />
        </mx:ControlBar>
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Graphics BlurFilterGraphics BlurFilter
2.Define a BlurFilter and the animation on that filter.Define a BlurFilter and the animation on that filter.
3.Using a Blur effect on a buttonUsing a Blur effect on a button
4.Three-phase blur effectThree-phase blur effect
5.Apply Blur effectApply Blur effect
6.Blur DemoBlur Demo
7.Resize as blurResize as blur