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

ÀûÓôúÂëÓë²¼¾Ö·ÖÀë¼¼Êõ¹¹½¨×Ô¶¨ÒåFlex×é¼þ


XMLºÍActionScriptÔÚ´´½¨×é¼þ·½Ãæ¸÷ÓÐÓÅȱµã£º
ÔÚ´´½¨¸´ºÏ×é¼þʱ£¬MXML¿ÉÒÔʱ´´½¨¹ý³Ì±äµÃºÜÈÝÒ×£¬²¢ÇÒ·½±ãÓÚ¶Ô×ӿؼþ½øÐв¼¾Ö¡£
ÔÚÐÞ¸Ä×é¼þÐÐΪʱ£¬ÎÒÃÇ¿ÉÒÔÓÃActionScriptÀ´ÐÞ¸ÄËûÃǵķ½·¨¡£
´ó¶àÊýʱºò£¬ÎÒÃÇ»áʹÓÃMXMLºÍActionScript½áºÏµÄ·½Ê½À´´´½¨Flex×é¼þºÍÓ¦Óá£
FlexÌṩÁ˶àÖÖ·½Ê½À´½áºÏʹÓÃMXMLºÍActionScript£¬°üÀ¨ÒÔϼ¸µã£º
Ö±½Ó½«ActionScriptÓï¾äÖ±½Ó·Åµ½MXML±ê¼ÇÄÚ¡£Õâ³£³£»áÔÚ¶¨ÒåÄÚÁªÊ±Ê¼þ¾ä±úʱʹÓá£
½«ActionScript·ÅÈë<mx:Script>±êÇ©ÄÚ¡£
ÓÃ<mx:Scriopt>±êÇ©À´°üº¬ÍⲿµÄ¡£
ʹÓÃMXML´úÂëÀ´×ö´úÂë²¼¾Ö£¬²¢°ÑActionScript·ÅÔÚÀඨÒåÖС£Õâ¾ÍÊÇÎÒÃÇËùÖªµÄ´úÂëÒþ²Ø¡£
ÒªÏëͬʱʹÓÃActionScriptºÍMXML²¢°Ñ´úÂëÒþ²ØÆðÀ´£¬ÎÒÃÇÐèÒª°ÑActionScriptÀà×÷ÎïMXML×é¼þµÄ¸ù±êÇ©£»Ò²¾ÍÊÇ˵£¬ÄãµÄMXML×é¼þÐèÒª¼Ì³ÐActionScriptÀà¡£ÀýÈç´´½¨Ò»¸öÓÃÓÚÏÔʾµØÖ·ÊäÈë×Ô¶¨ÒåµÄAddressForm×é¼þ£¬¾ÍÐèÒª°´ÒÔϲ½Öè½øÐвÙ×÷£º
Ê×ÏÈ´´½¨Ò»¸ö½Ð×öAddressFormClassµÄActionScriptÀ࣬ȻºóÈÃÕâ¸öÀà¼Ì³ÐÒ»¸öFlexÀà¡£ÕâÑùµÄ»°ÎÒÃǾͿÉÒÔʹÓÃFormÈÝÆ÷µÄ²¼¾ÖÄÜÁ¦²¢ÈÃAddressFormClass¼Ì³Ðmx.containers.FormÀà¡£
´´½¨Ò»¸ö½Ð×öAddressFormµÄMXML×é¼þ£¬²¢°ÑAddressFormClass×÷ΪËüµÄ¸ù±êÇ©¡£
ÓÃMXMLΪActionForm×é¼þµÄÄÚÈݽøÐв¼¾Ö¡£
ÓÃActionScriptΪActionForm×é¼þ´´½¨Âß¼­¡£
Ìáʾ£ºÎÒÃDZØÐëÔÚActionScriptÀàÖаÑ×ӿؼþ¶¨ÒåΪ¹«¹²·ÃÎÊ¡£
ÏÂÃæµÄÀý×Ó°üº¬ÁËÉÏÃæÃèÊöµÄ×Ô¶¨Òå×é¼þAddressForm¡£Ö÷Ó¦ÓóÌÐòÎļþÀûÓÃÁË´úÂëÒþ²Ø¼¼Êõ£¬Àý×ÓÒ²°ÑÎÒÃÇÔÚÆäËû½Ì³ÌÖд´½¨µÄCountryComboBoxºÍPaddedPanel×é¼þÌí¼ÓÁËЩÌØÐÔ¡£
À©Õ¹£ºÔÚ´´½¨FlexÓ¦ÓÃʱ°Ñ±¾Æªµ±×÷Ò»¸öÁ·Ï°½éÉÜ¡£¶ÔÓÚ¸ü¶àµÄÐÅÏ¢£¬Çë²Î¿¼Arp¿ò¼Ü — Ò»¸öÀûÓôúÂëÒþ²Ø¼¼ÊõÀ´´´½¨FlashºÍFlexÓ¦ÓõĿªÔ´µÄ»ùÓÚÑùʽµÄ¿ò¼Ü¡£
components/AddressFormClass.as
package components
{
import mx.events.FlexEvent;
import mx.controls.Button;
import mx.controls.TextInput;
import flash.events.MouseEvent;
import mx.containers.Form;

public class AddressFormClass extends Form
{
// Components in the MXML must be
// declared public. This is a limitation in
// the current version of Flex and may change
// in the future.
public var submitButton:Button;
p


Ïà¹ØÎĵµ£º

flex sessionÏà¹Ø²Ù×÷

1.д session
mxml Îļþ ¼Ó
   <mx:RemoteObject source="servlet" id="sessionObject" />  
as ÎļþÓÃÏÂÃæÓï¾äµ÷ÓÃ
   sessionObject.session("set", "foo", 30200);
2.¶Á session
mxml Îļþ ¼Ó
   <mx:RemoteObject source="servlet" id="sessionObject1" res ......

FLEX MXML×ÖÌå´óСÉèÖÃ

ÒòΪmyeclipseµÄbugÎÊÌ⣬һʱ¾¹È»Ã»ÓÐÕÒµ½ÄÜÐ޸ĵĵط½£¬ÆäʵºÜ¼òµ¥£¬²½ÖèÈçÏ£º
myeclipse-->window-->Preference-->General-->Appearence-->Colors and Fonts-->Basic-->Text Font
È»ºóµã»÷change,Ð޸ijÉ×Ô¼ºÐèÒªµÄ×ÖÌå´óС£¬²»¹ýÐ޸ı£´æºó£¬·¢ÏÖÐÞ¸ÄʱÎÞЧµÄ£¬Ã»ÓÐÆð×÷Óá£
Õâʱ°ÑËüÔٸijÉ10º ......

¹ØÓÚflexÐÔÄܵ÷ÓÅÏà¹ØµÄһЩ×ܽá

1.Performace°üº¬4µã£º
£¨1£©Latency·´Ó¦Ê±¼ä£¨2£©Scalability:¿¹Ñ¹ÄÜÁ¦£¨3£©Reliablity£ºÎȶ¨ÐÔ£¨4£©Availability£º¿ÉÓÃÐÔ
2.ÔËÐÐʱÉúÃüÖÜÆÚ£º
FlexÖ»ÓÐÁ½Ö¡frames£ºPreload frame ºÍ application frame¡£
ÿһ¸öflex application ÊÇÒ»¸öMovieClip£¬ÒòΪÿ¸öflex application¶¼ÓÐSystemManager£¬ËûÊǼ̳Ð×Ô
flash.dis ......

Flex Deep Link(ÉîÁ´½Ó)Ó¦ÓÃ


document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
......

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
¶¨ÒåÓ¦Óýű¾³ÌÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ