Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ÖÐÐèÒª¼ÇסµÄһЩ¶«Î÷

Ò»¡¢Application³£ÓõÄʼþ
initialize=============>³õʼ»¯
createcomplate==========>ÔªËؼÓÔØÍê
initialize·¢ÉúÔÚcreatecomplate֮ǰ¡£
¶þ¡¢Êý¾ÝÇëÇó˵Ã÷
HTTPService==========>httpÊý¾ÝÇëÇó¡£
SOAP(Simple Object Access Protocal)=======> webService
AMF(Adobe Action Message Format)========&g ......

flex serverÏîÄ¿µÄ·¾¶ÅäÖÃ

Root folder
Õâ¸öĿ¼Ӧ¸ÃÌîдtomcatĿ¼Ï£¬ÄǸöjavaÏîÄ¿µÄËùÔÚλÖã¬Èç¹ûΪ´í£¬»á³öÏÖ“ Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.”ËüÌáʾ¸ÃĿ¼WEB-INF²»´æÔÚflex-config.xml»òservice-config.xmlÎļþ£¬Èç¹ûÊÇÒ»¸öÕý³£µÄjavaÏîÄ¿£¬¾Í»áÓÐÕâ¸öÎļ ......

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

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

flex chart µÄÏà¹ØÊôÐÔ×÷ÓÃ


1.       chart£º×ÜÌå¿ØÖÆ
2.      
series£º¶¨ÒåʲôÑùµÄÊý¾ÝÀ´Õ¹Ê¾£¬x,yÖá·Ö±ðÏÔʾʲôÊý¾Ý¡£ËüÊÇ°üº¬ÏàÓ¦µÄseriesItemµÄArray¡£SeriesItem·â×°Á˼«Öµ
µã£¬Ìî³ä·½Ê½£¬xyÊý¾ÝµÈ¡£
3.       series ÖÐdisplayNameÊôÐÔ¿ ......

ѧϰ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ºÅ