Add up Flash (10)

Source: Internet
Author: User
Tags addchild

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 &LT;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> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.