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

Flex´ÓÒ³Ãæurl»ñÈ¡²ÎÊý£¨×ܽᣩ

¹ØÓÚflexÈçºÎÏòij¸öÒ³Ãæ´«µÝ²ÎÊý£¬ÎÒÒÔÇ°ÓÐÕâ·½ÃæµÄ±Ê¼Ç£¬flexͨ
¹ý·ÇAmfPHP;¾¶Óëºǫ́½»»¥
ÖÐURLLoader+URLRequest+URLVariables·½·¨Ò²¿ÉÒÔÓÃÓÚÏòflexÒ³Ãæ´«²ÎÊý¡£ºó
̨php¶Ë½ÓÊÕ²ÎÊýºÜ¼òµ¥£¬ÏÖÔÚÌÖÂÛÒ»ÏÂflex¶ËÈçºÎ´¦ÀíÒ³Ãæurl´«µÝ¹ýÀ´µÄ²ÎÊý¡£
ÍøÉÏÕâ·½ÃæÎÄÕ²»ÉÙ£¬²»¹ý¶¼¶àÉÙÓÐЩÎÊÌ⣬ÎÒ×ܽáһϣ¬Ð´ÔÚÕâÀï¡£
·½·¨Ò»£º
flex½ÓÊÕÍøÒ³´«Öµ£¡~
Code
 1
<?
xml version
=
"
1.0
"
 encoding
=
"
utf-8
"
?>
 2
<
mx:Application xmlns:mx
=
"
http://www.adobe.com/2006/mxml
"
 layout
=
"
absolute
"
 3
   applicationComplete
=
"
initApp()
"
>
 4
  
 5
<
mx:Label text
=
 6
"
Will run the app deployed at http://{serverURL}:{port}/MyGreatApp.html
"
 
/>
 7
<
mx:Script
>
 8
   
<!
[CDATA[
 9
       [Bindable]
10
       var serverURL:String;
11
      
12
       [Bindable]
13
       var port:String;
14
      
15
       function initApp():
void
{
16
           serverURL
=
Application.application.parameters.serverURL;
17
           port
=
Application.application.parameters.port
18
       }
19
   ]]
>
20
</
mx:Script
>
21
</
mx:Application
>
×÷ÕßÔÚÎÄÕÂ×îºóд£º“ÍⲿÒÔtest.swf?serverURL=String&port=String µÄÐÎʽÔÚÍøÒ³Öе÷Óã¡”
ÕâÑù×öȷʵûÓÐÎÊÌ⣬µ«Æ½Ê±µÄflex³ÌÐò¶¼ÊÇÒÔhtmlΪÈÝÆ÷½«swfÎļþ°ü×°ÁËÆðÀ´¡£Èç¹ûÓÃtest.html?serverURL=String&
amp;port=StringµÄ·½Ê


Ïà¹ØÎĵµ£º

flex ÅäÖøÐÏë

  ÉÏ´ÎÌýÅóÓÑÌáÆðÏÖÔÚÔÙÓÃFlex×öÏîÄ¿£¬ÏÐϾ֮ÓàÔÚ×Ô¼ºµÄµçÄÔÉÏÅäÖÃÁËFlex + myeclipseµÄ¿ª·¢»·¾³¡£ËäÈ»¿ª·¢»·¾³´î½¨»¨Á˲»ÉÙµÄʱ¼ä£¬Ò²Óöµ½Á˲»ÉÙÎÊÌâ¡£ÔÙ½â¾öÕâЩÎÊÌâµÄʱºò£¬Ò²ÕÒÁ˲»ÉÙµÄ×ÊÁÏ£¬Ñ§µ½Á˲»ÉÙ¶«Î÷¡£ºÇºÇ
¼ÌÐøÑо¿Ñ§Ï°................... ......

Flexʼþ»úÖÆ»ù´¡(Ò»)

ºÜ¶à¿ª·¢ÈËÔ±¶¼ÖªµÀÈçºÎʹÓÃʼþ»úÖÆ£¬µ«È´²»Àí½âʼþ»úÖƵĻù±¾¹¤×÷Ô­Àí¡£ÔÚÕâÀïÎÒÃÇ̽ÌÖÒ»ÏÂActionScript 3µÄʼþ»úÖÆ(ÎÞÂÛÊÇÐÂÊÖ»¹ÊÇÀÏÊÖ£¬ÎÒÏàÐÅ¿´µ½×îºó¿Ï¶¨¶ÔÄãÓÐËù°ïÖú )¡£
1. Ê×ÏÈÀ´¿´Ò»ÏÂʼþ»úÖÆÖеļ¸¸ö»ù±¾¸ÅÄ
event objects(ÕâÀïÎÒÃǹÃÇÒ½ÐËüʼþ¶ÔÏó)£ºËùÓеÄʼþ¶ÔÏó¶¼ÊÇflash.events.Event»òÕßÆä×ÓÀà¡ ......

Flexʼþ»úÖÆ»ù´¡(¶þ)

4. Àí½âʼþ½×¶Î(Event Phases) ÎÒÃÇ°Ñʼþ´¥·¢Ô´·ÖΪÁ½ÀࣺһÀàÊÇÄÇЩÏÔʾÔÚ½çÃæÖеÄÔªËØÅ׳öµÄʼþ£¬Ò»ÀàÊÇÄÇЩ²»ÔÚ½çÃæÖÐÏÔʾµÄÔªËØÅ׳öµÄʼþ¡£ºÜ¼òµ¥£¬¾Ù¸öÀý×Ó£ºµÚÒ»ÀàÈçURLLoader¶ÔÏóÈ¥loadͼƬ»òÆäËû×ÊÔ´ËùÅ׳öµÄÈçcompleteʼþ£¬¾ÍÊôÓÚµÚÒ»Àà¡£½çÃæÉϵÄÒ»¸ö°´Å¥ËùÅ׳öµÄclickʼþ¾ÍÊǵڶþÀ࣬Ëü»á´¥·¢Ò»¸öʼþÁ÷£¬ ......

Flex httpservice·µ»ØÖµÀàÐͺʹ¦Àí

·µ»ØÊý¾ÝµÄ¸ñʽresultFormatÓм¸ÖÖÀàÐÍ£¬object¡¢array¡¢xml¡¢flashvars¡¢textºÍe4x£¬Ä¬ÈϵÄÉèÖÃΪobject¡£
RESULT_FORMAT_ARRAY : String = "array"
[] ½á¹û¸ñʽ“array”Óë“object”ÏàËÆ£¬µ«ÊÇÆä·µ»ØµÄֵʼÖÕΪÊý×飻ÕâÑù£¬Èç¹û´Ó½á¹û¸ñʽ“object”·µ»ØµÄ½á¹ûÉв»ÊÇÊý×飬Ôò½«°Ñ¸ÃÏî ......

ѧϰFlex µÄ³£Óü¼ÊõÍøÖ·ÊÕ¼¯

ÖÐÎÄÔÚÏß°ïÖúÎĵµ£ºhttp://livedocs.adobe.com/flex/3_cn/langref/  
http://examples.adobe.com/flex3/componentexplorer/explorer.html¡£
ÆäËûÍøÕ¾£º
http://bbs.actionscript3.cn
http://www.airia.cn
http://www.anyflex.cn/bbs
http://www.5uflash.com/flex-air
http://www.52ria.com
http:// ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ