Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

flexѧϰ flexÖеķâ×°£¨×é¼þ£©

Ê×ÏÈ´´½¨Ò»¸ö×é¼þµÄMXMLÎļþ
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[CDATA[
[Bindable]
public var myFirstName:String;
[Bindable]
public var myLastName:String;
]]
</mx:Script>
<mx:Label text="Your first name is {myFirstName}" />
<mx:Label text="Your last name is {myLastName}" />
</mx:VBox>
ÔÙ´´½¨Ò»¸öÖ÷Îļþµ÷ÓÃ×é¼þ
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:components="components.*">
<mx:Script>
<!--[CDATA[
[Bindable]
private var fName:String = "shen";
[Bindable]
private var lName:String = "cm";
]]-->
</mx:Script>
<components:MyForm myFirstName="{fName}" myLastName="{lName}" id="names"/>
<mx:Label x="350" y="200" text="My full name is {names.myFirstName} {names.myLastName}"/>
</mx:Application> ......

flexѧϰ ×Ô¶¨Òåʼþ

ÎÒ¸öÈ˾õµÃÕâ¸ö×Ô¶¨Òåʱ¼ä·â×°ÐԺܺ㬵«ÊÇÓе㸴ÔÓ£¬²»½¨Òé¼òµ¥±à³ÌÖÐʹÓÃ
´´½¨Ò»¸öMXML×é¼þ£¬½¨×Ô¶¨Òåʼþ
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
private function clickHandler():void{
// var myEvent:Event = new Event("nameDataShared");
var myEvent:TextEvent = new TextEvent("nameDataShared");
myEvent.text = myNameInput.text;
dispatchEvent(myEvent);

}
]]-->
</mx:Script>
<!--Metadata±êÇ©²¢²»±àÒëµ½¿ÉÖ´ÐдúÂëÖУ¬µ«Ëü»áÌṩÐÅÏ¢¿ØÖÆÄãµÄ´úÂëÈçºÎ±àÒë¡£
²»ÄܰÑActionScript»òMXML´úÂë·Åµ½Metadata±êÇ©ÖУ¬ËüÊÇÌØÊâµÄÖ¸Áî¡£
¸æËß±àÒëÆ÷ÕýÔÚ´´½¨Ò»¸ö×Ô¶¨Òåʼþ²¢ÃüÃû¡£È磺[Event(name="nameDataShared")]¡£Õâ¸ö·½À¨ºÅ½Ð×ömeta±êÇ©¡£
-->
<mx:Metadata>
// [Event(name="nameDataShared")]
[Event(name="nameDataShared", type="flash.events.TextEvent")]
</mx:Metadata>
<mx:Label text="Name Dispatcher" fontSize="16"/>
<mx:HBox> ......

ÔÚFLEXÖеÄstageÒÔ¼°È«ÆÁÏà¹ØÄÚÈÝ

ÏÖÔÚÎÒÃÇÏÈ¿´¿´´úÂë,ÏÂÃæµÄ´úÂë×°ÔÚcreationCompleteʼþÖе÷ÓÃinit()À´Æô¶¯È«ÆÁ.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()"
>
<mx:Script>
<![CDATA[
private function init():void{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
]]>
</mx:Script>
</mx:Application>
ÏÖÔÚ±£´æÔËÐÐÒ»ÏÂswf,È´ÓÐTypeError..ÏêϸÐÅÏ¢ÈçÏÂ
view plain
copy to clipboard
print
?
Main Thread (Suspended: TypeError: Error #1009: ÎÞ·¨·ÃÎʿնÔÏóÒýÓõÄÊôÐÔ»ò·½·¨¡£)    
    swf_fullscreen/init    
    swf_fullscreen/___swf_fullscreen_Application1_creationComplete     
    flash.events::EventDispatcher/dispatchEventFunction [no source]     
    flash.events::EventDispatch ......

flexѧϰ flex¶ÁÈ¡xmlÎļþ

Ô´xmlÎļþ
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people who really look like that</description>
</stock>
<stock>
<name>Here With the Wind</name>
<author>Margaret Middle</author>
<category>Fiction</category>
<description>In this edition, nobody in the south really gives a damn</description>
</stock>
<stock>
<name>Harry Potluck and the Chamber of Money</name>
<author>J.K. Roughly</author>
<category>Fiction</category>
<description>Young wizard finds the real pot-of-gold and retires</description>
</stock>
<stock>
<name>No Expectations</name>
<author>Chuck ......

flexѧϰ flex¶ÁÈ¡xmlÎļþ

Ô´xmlÎļþ
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people who really look like that</description>
</stock>
<stock>
<name>Here With the Wind</name>
<author>Margaret Middle</author>
<category>Fiction</category>
<description>In this edition, nobody in the south really gives a damn</description>
</stock>
<stock>
<name>Harry Potluck and the Chamber of Money</name>
<author>J.K. Roughly</author>
<category>Fiction</category>
<description>Young wizard finds the real pot-of-gold and retires</description>
</stock>
<stock>
<name>No Expectations</name>
<author>Chuck ......

FLEX Builder compiler arguments µÄÉèÖÃ

¡¾±àÒë²ÎÊý¡¿
-default-background-color int
-default-frame-rate int
-default-size width height
ÉèÖÃSWFµÄ±³¾°É«£¬Ö¡ÆµÓë¿í¸ß£¬Õâ¸öÒ²¿ÉÒÔͨ¹ýÔª±êÇ©ÉèÖã¬ÖîÈç
[SWF(width="720",height="560",backgroundColor="#000000")]
-default-script-limits
-max-recursion-depth
-max-execution-time
¶¨ÒåÓ¦Óýű¾³ÌÐòµÄÖ´ÐÐÏÞÖÆ£¬×î´ó´úÂëÌõÄ¿£¬×î´óµÝ¹é²ã´Î£¬×î´óµÄÖ´ÐÐʱ¼ä
-debug=true|false
ÊÇ·ñÉú³Éµ÷ÊÔÓÃSWF£¬µ÷ÊÔÓÃSWF»á±ÈÒ»°ãµÄSWFÒª´ó¡£ÔÚFlex BuilderÖУ¬Ä¬ÈÏΪtrue£¬¶øÔÚÒÔRelease·½Ê½Ê±·¢²¼Ê±£¬Ä¬ÈÏΪfalse£¬ËùÒÔÓÃRelease·¢²¼µÄÎļþ»á±»debugʱСºÜ¶à¡£
-optimize=true|false
ÓÅ»¯as£¬¼õÉÙÎļþ´óС£¬Ôö¼ÓÐÔÄÜ£¬Ä¬ÈÏΪtrue¡£
-strict=true|false
ÊÇ·ñ²ÉÓÃÑϽ÷ģʽ
-use-network=true|false
¿É¶ÁÈ¡ÍøÂç»òÕ߿ɶÁÈ¡±¾µØÎļþ
-includes class [...]
Ç¿ÖÆµ¼ÈëÀ࣬²»¹ÜÊÇ·ñÔøÊ¹ÓùýÕâ¸öÀà
-include-libraries library [...]
Ç¿ÖÆµ¼ÈëSWCÎļþÖеÄËùÓÐÀ࣬²»¹ÜÊÇ·ñÔøÊ¹ÓùýÕâ¸öÀà
-frames.frame label class_name [...]
½«Àà°ó¶¨label±ê¼ÇµÄÖ¡ÉÏ
 
¡¾ºǫ́Ïà¹Ø¡¿
-context-root string
-context-path string
ÉèÖÃ{context.root}µÄÖµ£¬Õâ¸öÊ ......

»ùÓÚFlexµÄflv¼òÒײ¥·ÅÆ÷

×î½üÔÚÏîÄ¿ÖÐÒªÓõ½flv²¥·ÅÆ÷£¬ÓÉÓÚflex×Ô´øµÄVideoDisplay×é¼þ²»ÊǺܺÃÓ㬾Í×Ô¼º¼òµ¥ÊµÏÖÁËÒ»¸ö£¬½çÃæ²»ÊǺÜÃÀ¹Û£¬µ«¹¦Äܶ¼ÓÐÁË£¬Õý¿ÉνÂéȸËäСÎåÔà¾ãÈ«¡£ÏÂÃæÊDz¥·ÅÆ÷µÄ´úÂ룬»¹²»»áÓÃflash×öflv²¥·ÅÆ÷µÄÅóÓÑ£¬¿ÉÒԲο¼²Î¿¼¡£
Player.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" backgroundColor="#000000" creationComplete="completeHandler()"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Script>
        <![CDATA[
            import mx.events.SliderEvent;
            import mx.core.UIComponent;
            import mx.controls.Alert;
            import mx.utils.StringUtil;
   &nbs ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [77] [78] [79] [80] 81 [82] [83] [84] [85] [86]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ