Add-in Flash-Flex 3.0 state Transitions (state), transition effects of the transitions (states Transition), custom mouse pointer
Introduced
Demonstrates transition state in Flex 3.0 and excessive effects in transition state, customizing the mouse pointer
State transition-to UI state, converting to a certain programming model
Transition effect (state Transition) of the status transition-sets the transition effect during the conversion of the UI state
Customize the mouse pointer-customize the style of the mouse pointer
Online Demo
Http://www.cnblogs.com/webabcd/archive/2009/11/09/1598980.html
1. Demo State Application
State.mxml
<?xml version= "1.0" encoding= "Utf-8"?> <mx:panel xmlns:mx= "Http://www.adobe.com/2006/mxml" Absolute "width=" "height=" "title=" state (Application of States) "> <mx:states> <mx:state name=" St
Ate2 > <!--<mx:addchild/>-Adds the specified control at the specified location of the specified associated control RelativeTo-associated control position-increases the control associated control to an element type at the specified position of the associated control, where the possible values are : Before or after the associated control is a collection type, the possible values here are: FirstChild or LastChild <MX:SETP
Roperty/>-Sets the value of a property of the specified control <mx:removechild/>-Removes the specified control-->
<mx:addchild relativeto= "{form}" position= "LastChild" > <mx:formitem label= "Label2:" >
<mx:TextInput/> </mx:FormItem> </mx:AddChild> <mx:setproperty Target= "{Panel}" name= "title" Value= "State 2"/> <mx:removechild target= "{Toggle}"/>
Dchild relativeto= "{bar}" position= "FirstChild" > <!--set state to NULL, that is, convert to original state
--> <mx:linkbutton label= "Convert to Status 1" click= "this.currentstate=" "/>" </mx:AddChild> </mx:State> </mx:states> <!--The following is the UI for State 1
; <mx:panel id= "Panel" title= "Status 1" > <mx:form id= "Form" > <mx:formitem label= "Label1:" &
Gt <mx:TextInput/> </mx:FormItem> </mx:Form> <mx:controlbar id= "Bar" &G
T <!--UI state transitions to <mx:state/> named State2--> <mx:linkbutton id= "
Toggle "Label=" to State 2 "click=" this.currentstate= ' State2 '/> </mx:ControlBar> </mx:Panel> </mx:Panel>