Flex ÖеÄStates(״̬)
Flex ÖеÄStates(״̬)
¹Ø¼ü×Ö: flex, states
States ÊÇÒ»Ì×ÓÃÓÚ´´½¨×´Ì¬×é¼þµÄÇ¿´ó¹¤¾ß£¬Ò²¾ÍÊÇ˵×é¼þ¿ÉÒÔÓжà¸öÊÓͼ¡£
ʹÓÃStates À´Çл»ÊÓͼ¿ÉÒÔ½ÚÔ¼×ÊÔ´
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:states>
<mx:State name="Register">
<mx:AddChild relativeTo="{loginForm}" position="lastChild">
<mx:FormItem id="confirm" label="È·ÈÏÃÜÂë">
<mx:TextInput/>
</mx:FormItem>
</mx:AddChild>
<mx:SetProperty target="{loginPanel}" name="title" value="×¢²á"/>
<mx:SetProperty target="{loginButton}" name="label" value="×¢²á"/>
<mx:RemoveChild target="{registerLink}"/>
<mx:AddChild relativeTo="{spacerl}" position="before">
<mx:LinkButton label="·µ»Øµ½µÇ½" click="currentState=''"/>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Panel id="loginPanel" title="怫" fontSize="12" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Form id="loginForm">
<mx:FormItem label="Óû§Ãû:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="ÃÜÂë:">
<mx:TextInput/>
</mx:FormItem>
</mx:Form>
<mx:ControlBar>
<mx:LinkButton id="registerLink" label="»¹Î´×¢²á?" click="currentState='Register'"/>
<mx:Spacer width="100%" id="spacerl"/>
<mx:Button label="怫" id="loginButton"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
Ïà¹ØÎĵµ£º
1.¸´ÖÆÄÚÈݵ½ÏµÍ³¼ôÌù°å
System.setClipboard(strContent);
2.¸´ÖÆÒ»¸öArrayCollection
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( ......
ÒªÔÚFlexµÄDataGridÀïÌí¼ÓÐòºÅÁУ¬´óÌåÉÏÓÐÁ½ÖÖ·½·¨£º
ÉèÖÃDataGridColumnµÄlabelFunction¡£
Æä´óÖµÄ˼·ÊÇ£¬»ñÈ¡µ½µ±Ç°DataGridµÄdataProvider¼°µ±Ç°ÐеÄdata£¬µ÷ÓÃgetItemIndex·½·¨»ñÈ¡µ½µ±Ç°µÄÐеÄÐòºÅ¡£
¾ßÌå¿É²Î¿¼ http://wmcai.blog.163.com/blog/static/480242008111115724283/¡£ÕâÖÖ·½·¨±È½ÏÖ±¹Û£¬Ò²ºÜÈÝÒ ......
2009-02-18
ËõÂÔÏÔʾ
FlexÍÏ×§-CanvasÈÝÆ÷ÀïÍ϶¯Box
ÎÄÕ·ÖÀà:Webǰ¶Ë¹Ø¼ü×Ö: flex, flexÍÏ×§, canvas, box
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.core. ......
FlexÍÏ×§-Á½¸öListÖ®¼äÍÏ×§
¹Ø¼ü×Ö: flexÍÏ×§, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
imp ......