Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Bison ºÍLLVM±àд×Ô¼ºµÄ±àÒëÆ÷v

Ô­Îijö´¦£ºhttp://gnuu.org/2009/09/18/writing-your-own-toy-compiler
1¡¢½éÉÜ
ÎÒ×ÜÊǶԱàÒëÆ÷ºÍÓïÑԷdz£¸ÐÐËȤ£¬µ«ÊÇÐËȤ²¢²»»áÈÃÄã×ߵĸüÔ¶¡£´óÁ¿µÄ±àÒëÆ÷µÄÉè¼Æ¸ÅÄî¿ÉÒÔ¸ãµÄÈκÎÒ»¸ö³ÌÐòÔ±ÃÔʧÔÚÕâЩ¸ÅÄîÖ®ÖС£²»ÓÃ˵£¬ÎÒÒ²Ôø
½ñ³¢ÊÔ¹ý£¬µ«ÊDz¢Ã»ÓÐÈ¡µÃÌ«´óµÄ³É¹¦£¬ÎÒÒÔÇ°µÄ³¢ÊÔ¶¼Í£ÁôÔÚÓïÒå·ÖÎö½×¶Î¡£±¾ÎĵÄÁé¸ÐÖ÷ÒªÀ´Ô´ÓÚÎÒ×î½üÒ»´ÎµÄ³¢ÊÔ£¬²¢ÇÒÔÚÕâÒ»´ÎÖÐÎÒÈ¡µÃÒ»µã³É¾Í¡£
ÐÒÔ˵ÄÊÇ£¬×î½üµÄ¼¸Ä꣬ÎҲμÓÁËһЩÏîÄ¿£¬ÕâЩÏîÄ¿¸øÁËÎÒÔÚ½¨Á¢±àÒëÆ÷ÉϺܶàÓÐÓõľ­ÑéºÍ¹Ûµã¡£ÁíÍâÒ»¼þÊÂÊÇ£¬Îҷdz£ÐÒÔ˵õ½LLVM
µÄ°ïÖú¡£¶ÔÓÚÕâ¸ö¹¤¾ß£¬ÎÒ²»ÖªµÀ¸ÄÔõôȥÐÎÈÝËü£¬µ«ÊÇËû¸øÎÒµÄÕâ¸ö±àÒëÆ÷µÄÈ·´øÀ´·Ç³£´óµÄ°ïÖú¡£
1.1¡¢ÄãΪʲôҪÔĶÁ±¾ÎÄ
ÄãÒ²ÐíÏë¿´¿´ÎÒÕýÔÚ×öµÄÊÂÇ飬µ«ÊǸüÓпÉÄܵÄÊÇ£¬ÄãÒ²ÊǺÍÎÒÒ»Ñù¶Ô±àÒëÆ÷ºÍÓïÑԷdz£¸ÐÐËȤ£¬²¢ÇÒÒ²¿ÉÄÜÓöµ½ÁËһЩÔÚ̽Ë÷µÄ¹ý³ÌÖÐÓöµ½ÁËһЩÄÑÌ⣬Äã
¿ÉÄÜÕý´òËã½â¾öÕâЩÄÑÌ⣬µ«ÊÇȴûÓз¢ÏֺõÄ×ÊÔ´¡£±¾ÎĵÄÄ¿±ê¾ÍÊÇÌṩÕâЩ×ÊÔ´£¬²¢ÒÔÒ»ÖÖÊÖ°ÑÊֵķ½Ê½½ÌÄã´ÓÍ·µ½Î²µÄÈ¥´´½¨Ò»¸ö¾ßÓлù±¾¹¦ÄܵÄÓïÑÔ±àÒë
Æ÷¡£
ÔÚ±¾ÎÄ£¬ÎÒ²»»áÈ¥½âÊÍһЩ±àÒëÆ÷»ù±¾ÀíÂÛ£¬ËùÒÔÄãÒªÔÚ¿ªÊ¼±¾ÎÄÇ°È¥Á˽âʲôÊÇBNFÓï·¨
£¬Ê²Ã´ÊdzéÏóÓï·¨Ê÷Êý¾Ý½á¹¹ AST ......

flex traceÎÞ·¨Ê¹ÓÃ


½â¾öʹÓÃFlex  ÎÞ·¨Ê¹ÓÃtraceµÄÎÊÌâ
³öÏÖÁËʹÓÃDebug¹¦ÄܳöÏÖÁËÎÞ·¨Ê¹ÓÃtraceµÄÎÊÌâ
Õâ¸öÎÊÌâ˵Ã÷ÄãµÄFlash Player 10 ²»Êǵ÷ÊÔ°æ±¾
ÌṩһÏÂAdobe Flas Player 10µ÷ÊÔ°æ±¾µÄµØÖ·....
Ï£ÍûÄܶԴó¼ÒÓаïÖú
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe
......

¹ØÓÚFLEXÉú³ÉµÄSWFÉèÖÃstage.displayStateµÄÎÊÌâ

Ê×ÏÈ×¢ÒâÒ»ÏÂ.
ÕâÀï˵µÄÊÇÔÚ"FLEX"Éú³ÉµÄ"SWF"Ö±½ÓÔËÐÐʱ,ʹÓÃ"stage.displayState"ÆôÓÃÈ«ÆÁʱËùÓöµ½µÄÎÊÌâ...
×¢ÒâÉÏÃæ""ºÅËùÌáµ½µÄ¹Ø½¡´Ê..
ÏÖÔÚÎÒÃÇÏÈ¿´¿´´úÂë,ÏÂÃæµÄ´úÂë×°ÔÚ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>
& ......

ÍøÒ³ÖÐ Flex È«ÆÁ Àý×Ó

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/08/07/creating-full-screen-flex-applications/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="init(event)" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import flash.display.StageDisplayState;
private function init(evt:Event):void {
/* Set up full screen handler. */
Application.application.stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenHandler);
dispState = Application.application.stage.displayState;
}
private function fullScreenHandler(evt:FullScreenEvent):void {
dispState = Application.application.stage.displayState + " (fullScreen=" + evt.fullScreen.toString() + ")";
if (evt.fullScreen) {
/* Do something specific here if we switch ......

Flex Java ÉÏ´« ÏÂÔØ ×é¼þ

Flex Java ÉÏ´« ÏÂÔØ ×é¼þ ÊÕ²Ø
ÊÂÇ°×¼±¸¾ÍÊǵ½http://commons.apache.orgÏÂÔØcommon-fileupload-1.1.1.jarÒÔ¼°common-io-1.2.jarÁ½¸ö°ü¡£
ǰ̨Flex´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" creationComplete="init();">
<mx:Script>
<![CDATA[
import flash.net.FileReference;
import mx.controls.Alert;
import mx.events.CloseEvent;
import flash.events.*;
private var file: FileReference;
private function init(): void{
Security.allowDomain("*");
file = new FileReference();
file.addEventListener(ProgressEvent.PROGRESS, onProgress);
file.addEventListener(Event.SELECT, onSelect);
file.addEventListener(Event.COMPLETE, completeHandle);
}
private function completeHandle(event:Event):void{
     Alert.show("¹§Ï²Ä㣬ÉÏ´«³É¹¦");
}
private function upload(): void{
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.png)", "*.jpg;*.jpeg;*.png"); ......

Flex Java ÉÏ´« ÏÂÔØ ×é¼þ

Flex Java ÉÏ´« ÏÂÔØ ×é¼þ ÊÕ²Ø
ÊÂÇ°×¼±¸¾ÍÊǵ½http://commons.apache.orgÏÂÔØcommon-fileupload-1.1.1.jarÒÔ¼°common-io-1.2.jarÁ½¸ö°ü¡£
ǰ̨Flex´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" creationComplete="init();">
<mx:Script>
<![CDATA[
import flash.net.FileReference;
import mx.controls.Alert;
import mx.events.CloseEvent;
import flash.events.*;
private var file: FileReference;
private function init(): void{
Security.allowDomain("*");
file = new FileReference();
file.addEventListener(ProgressEvent.PROGRESS, onProgress);
file.addEventListener(Event.SELECT, onSelect);
file.addEventListener(Event.COMPLETE, completeHandle);
}
private function completeHandle(event:Event):void{
     Alert.show("¹§Ï²Ä㣬ÉÏ´«³É¹¦");
}
private function upload(): void{
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.png)", "*.jpg;*.jpeg;*.png"); ......

תÔØʹÓÃPyAmfÀ´ÊµÏÖFlexÓëDjangoµÄͨÐÅ

ÈýÄêÇ°£¬ÓùýAmfPHPÓëFlash/Flex
Remoting×ö¹ý½»»¥£¬×î½ü½Ó´¥Python£¬¹«Ë¾ÏîÄ¿ÓõÄFlex×öÇ°¶Ë£¬ËùÒÔ½Ó´¥ÁËPyAmf¡£PyAmf±¾ÖÊÉϸúAmfPHPÊÇÀ×ͬµÄ¡£¶¼ÊÇͨ
¹ý¶ÔAMFЭÒ飨ActionScript Message Format£©Ð­ÒéµÄÖ§³ÖÀ´ÊµÏÖ¶ÔFlashµÄ½»»¥¹ý³Ì¡£
Ò»¡¢Ê×ÏÈ£¬¼òµ¥µÄ½éÉÜÒ»ÏÂAMFЭÒé¸ñʽ¡£
AMFÊÇAdobe¶À¼Ò¿ª·¢³öÀ´µÄͨÐÅЭÒ飬Ëü²ÉÓöþ½øÖÆѹËõ£¬ÐòÁл¯¡¢·´ÐòÁл¯¡¢´«ÊäÊý¾Ý£¬´Ó¶øΪFlash ²¥·ÅÆ÷ÓëFlash
RemotingÍø¹ØͨÐÅÌṩÁËÒ»ÖÖÇáÁ¿¼¶µÄ¡¢¸ßЧÄܵÄͨÐÅ·½Ê½¡£AMF×î´óµÄÌØÉ«ÔÚÓÚ¿ÉÖ±½Ó½«FlashÄÚÖöÔÏó£¬ÀýÈçObject, Array,
Date,
XML£¬´«»Ø·þÎñÆ÷¶Ë£¬²¢ÇÒÔÚ·þÎñÆ÷¶Ë×Ô¶¯½øÐнâÎö³ÉÊʵ±µÄ¶ÔÏó£¬Õâ¾Í¼õÇáÁË¿ª·¢ÈËÔ±·±¸´¹¤×÷£¬Í¬Ê±Ò²¸üÊ¡ÁË¿ª·¢Ê±¼ä¡£Ëü²ÉÓöþ½øÖƱàÂ룬¿ÉÒԸ߶ÈѹËõÊý
¾Ý£¬Òò´Ë·Ç³£ÊʺÏÓÃÀ´´«µÝ´óÁ¿µÄ×ÊÁÏ¡£Êý¾ÝÁ¿Ô½´ó£¬Flash RemotingµÄ´«ÊäЧÄܾÍÔ½¸ß£¬Ô¶Ô¶³¬¹ýWeb
ServiceÒÔ¼°Ê¹Óô¿Îı¾µÄ´«Ê䷽ʽµÄXML¡£
AMFЭÒéÊÇ»ùÓÚHttpЭÒéµÄ£¬ËüµÄ´¦Àí¹ý³Ì´óÖÂÈçÏ£º
1¡¢´Ó¿Í»§¶Ë»ñÈ¡HttpÇëÇó(Request)Á÷¡£
2¡¢¶ÔÁ÷½øÐз´ÐòÁл¯£¨Deserialize£©£¬µÃµ½·þÎñÆ÷¶Ë³ÌÐòÄܹ»Ê¶±ðµÄÊý¾Ý£¬²¢½¨Á¢ÏìÓ¦£¨Response£©ÏûÏ¢¡£
3¡¢ÕÒµ½ÏàÓ¦µÄÔ¶³Ì·þÎñ
4¡¢µ÷Ó÷þÎñÆ÷¶Ë·½·¨£¬¶ÔÁ÷½ ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [119] [120] [121] [122] 123 [124] [125] [126] [127] [128]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ