+Rich Internet Applications with Adobe Flex & Java – SYS-CON Books学习进程—–添加State的两种方法

首先看看用FLEX BUILDER在设计模式下拖拽得到的State代码如下:

    <mx:State name="advanced">
        <mx:AddChild position="lastChild">
            <mx:Panel x="113" y="341" width="250" height="200" layout="absolute">




<mx:State name="advanced">

<mx:SetProperty target="{advanced_panel}" name="width" value="250"/>

<mx:SetProperty target="{advanced_panel}" name="height" value="200"/>



<mx:Panel id="advanced_panel" title="Advanced Info" width="0" height="0"/>



Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: