Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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>


Ïà¹ØÎĵµ£º

¸öÈË×ܽáflex¸÷ÖÖÓ÷¨

//»ñµÃÆÁÄ»µÄ·Ö±æÂÊ
var
 x:Number=Capabilities.screenResolutionX;
var
 y:Number=Capabilities.screenResolutionY;
Alert.show(
"x="
+x+
"y="
+y);
µÚ¶þÖÖ·½·¨
Alert.show(stage.fullScreenWidth+
"=="
+stage.fullScreenHeight);
 
//»ñµÃstage£¨¹¤×÷Çø£ ......

flex gifloader

×î½üÏîÄ¿ÐèÒªÔËÓõ½FLEX£¬µ«GOOGLEһϷ¢ÏÖ¿ÉÓõÄ×ÊÁÏʵÔÚÌ«ÉÙÁË¡£
ÕÒÁ˺þ÷¢ÏÖgoogle codeÉÏÔÚÕâ¸ö»¹²»´í£¬»¹ÓкܶණÎ÷¿ÉÒԺúÃÑо¿Ñо¿
 http://code.google.com/p/as3gif/
ÏÂÃæµÄÀý×ÓÊǽ«¶¯Ì¬GIF°ó¶¨µ½SPRITEÉÏ
package com.render
{
 import flash.display.Sprite;
 import flash.events.IOErr ......

FlexºÍAIRÖеÄÀ¬»ø»ØÊÕʵ¼ùÖ®¶ÔÏ󻺴æ[ÒëÎÄ]

Ô­ÎÄ£ºhttp://www.riameeting.com/node/587
ÀïÃæÓÐÒ»¾ä×ܽáÐԵϰ:
ÉèÖÃÒ»¸ö¶ÔÏóΪnull²»Ò»¶¨Äܹ»ÊÍ·ÅËüÕ¼ÓõÄÄڴ攡£ÕâÈ¡¾öÓÚflashÖÐÒѾ­ÊµÏÖµÄÀ¬»ø»ØÊյķ½Ê½£¬GCÓÉÖØ·ÖÅä´¥·¢¶ø²»ÊÇÓÉɾ³ý´¥·¢£¬ÕâÒâζ×ÅGCÖÜÆÚÔÚÄãÉùÃ÷new Object()µÄʱºòÔËÐжø²»ÊÇÄãÉèÖÃËüΪnullʱÔËÐС£
Ò²¾ÍÊÇ˵ÔÚnew ¶ÔÏóʱ²ÅÖØÐ·ÖÅäÄ򫾣 ......

FlexÍÏ×§ CanvasÈÝÆ÷ÀïÍ϶¯Box


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. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ