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

Flex ±êÇ©ºÍ AS Àà

Flex×îÇ¿´óµÄÌØÐÔÖ®Ò»¾ÍÊÇËüÔÚ±êÇ©ºÍ
ActionScriptÀàÖ®¼ä´´½¨ÁËÒ»¸ö¼òµ¥µÄÓ³Éä¡£ÕâÊÇÒ»¸ö¼òµ¥µÄ¸ÅÄµ«ÊÇÎÒ¶à´Î·¢ÏÖ²»¶®FlexµÄÈ˶ÔÕâµãÊÇÈçºÎ¹¤×÷µÄ»òÕß‘ËüΪʲôÓÐÓÃ’Àí½â
ÆðÀ´ÓÐÀ§ÄÑ¡£
¶ÔÄÇЩѧϰFlexµÄÐÂÊÖ£¬ÕâÀïÓÐһЩ¹æÔòÒÔ¼°
һЩ¼òµ¥µÄÀý×ÓÈÃÄãÃÇÒÔ´Ë¿ªÊ¼Ñ§Ï°Õâ¸öÌØÐÔ¡£

Àý×Ó 1 —— ¿ªÊ¼µÄÈý¸ö¹æÔò
¹æÔò 1

—— ÿ¸ö±êÇ©Ï൱ÓÚÒ»¸öÒÔ±êÇ©ÃûΪÀàÃûµÄÀàµÄÒ»¸öʵÀý
¹æÔò 2
—— ±êÇ©µÄÿ¸öÊôÐÔ£¨attribute£©×ª±äΪ¶ÔÏóÖеÄÒ»¸öproperty
¹æÔò 3
—— ÿ¸ö±êÇ©ÖеÄidÊôÐÔת±äΪÏàӦʵÀýÖеÄÒ»¸ö±äÁ¿
ÈÃÎÒÃǼÙÉèÄãÓÐÒ»¸öÏóÕâÑùµÄÀࣺ
public class Contact
{
public var home : Location;
public var work : Location;
public var firstname : String;
public var lastname : String;
public var isFriend : Boolean = false;
}
Äã¿ÉÒÔͨ¹ýÒ»¸öMXMLÎļþ´´½¨ËüµÄÒ»¸öʵÀý£¬
ÈçÏ£º
<Contact
id=”myContact” firstname=”Susan” lastname=”Smith” isfriend=”true” />
´ÖÂԵؽ²£¬ÉÏÃæµÄMXMLµÈ¼ÛÓÚÏÂÃæµÄ
ActionScript£º
var myContact :
Contact = new Contact();
myContact.firstname = “Susan”;
myContact.lastname=”Smith”;
myContact.isFriend=true;
¼òµ¥£¬¶Ô°É£¿×¢ÒâMXML±àÒëÆ÷ÖªµÀÈçºÎ´¦ÀíËù
ÓеÄÄÚ½¨£¨built-in£©ÀàÐÍ¡£StringÈÔÈ»±£³ÖΪ×Ö·û´®£¬µ«ÊÇBooleanÔòת±ä³ÉÕæÕýµÄ²¼¶ûÖµ£¬¶ø²»ÊÇ×Ö·û´®“true”¡£
µ«ÊÇÈç¹ûÄãµÄÀàÐͱȽϸ´ÔÓ¸ÃÔõô°ì£¿Õâ¾ÍÊÇ
¹æÔò 4 ³öÏÖµÄÔ­Òò¡£
Àý×Ó2 —— ¸´ÔÓÀàÐÍ
¹æÔò 4
——£¨¹æÔò
1ÖеÄÀýÍ⣩Èç¹ûÒ»¸ö±êÇ©²»ÊǺÍÒ»¸öÀàÏà¶ÔÓ¦£¬Ëü½«»á±»´¦Àí³ÉËùǶÈëµÄ±êÇ©£¨Òë×¢£º¼´¸¸±êÇ©£©µÄÒ»¸öÊôÐÔ£¬²¢ÇÒÕâ¸ö±êÇ©µÄÄÚÈݾÍÊÇÕâ¸öÊôÐÔµÄÖµ¡£
ÔÙ¿´Ò»ÏÂÉÏÃæµÄÀà¡£ËüÉæ¼°ÁËÒ»¸ö
LocationÀà¡£ÈÃÎÒÃÇ¿´Ò»ÏÂLocationÀàÊÇÕâô±»¶¨ÒåµÄ£º
public class Location
{
public var address : String;
public var state : String;
public var zip : String;
}
ÎÒÃÇ¿ÉÒÔʹÓÃÏÂÃæµÄMXMLÀ´´´½¨Ò»¸öº¬ÓÐ
LocationµÄContact¡£
<Contact
id=”myContact” firstname=”Henry” lastname=”Smith”>
<home>
<Location address=”555 Foo Drive” state


Ïà¹ØÎĵµ£º

flex spring £¬flex ÕûºÏ spring , flex + spring

flexÕûºÏspringÒ²ÓкܶàµÄÀý×Ó£¬ÆäʵÓкܶàÀý×Ӻܸ´ÔÓ¡£ÎÒÔÚÕâ¾Í¸ø´ó¼Ò½éÉܸö×î¼òµ¥µÄ£¬ºÜʵÓá£
˵Ã÷ÏÂ:flexÍêÈ«¿ÉÒÔ´úÌæstruts£¬ÏÂÃæµÄÀý×ÓÄÜÖ¤Ã÷¡£ÓÐÈË»áÎÊÁË£¬ºÍÆäËû¿ò¼ÜÔõôÑùÕûºÏ¡£spring¶¼ÄÜÕûºÏÁË£¬ÆäËû¿ò¼ÜÄãÒª²»»áÕûºÏÎÒÒ²¶¼ÎÞÓïÁË¡£
²»¶à˵ÁË£¬¿´´úÂë¾ÍÖªµÀ¼òµ¥²»£¡
flex--sdk 3.2ÒÔÉÏ
jdk 1.5 ÒÔÉÏ
spring ......

FlexÁ½ÖÖµ¯³ö´°¿Ú

1. ×î¼òµ¥µÄ¾¯¸æ´°¿Ú
ÄãÐèÒªÏȵ¼ÈëAlertÀࣺ import mx.controls.Alert;
È»ºóÔÚÏëÒªµ¯³ö¾¯¸æµÄʱºòʹÓãº
Alert.show(“ÄãÈ·¶¨ÒªÍ˳öϵͳÂð?”,“È·ÈÏ”,Alert.YES|Alert.NO,null,logout)
²ÎÊý˵Ã÷£ºµÚÒ»¸ö²ÎÊýÊÇÒªÏÔʾµÄÎı¾£¬µÚ¶þ¸ö²ÎÊýÊÇ´°¿ÚµÄ±êÌ⣬ÕâÁ½¸ö²ÎÊýÊÇ×î¾­³£Óõġ£µÚÈý¸ö²ÎÊýÊǰ´Å¥£ ......

flex»ñÈ¡url²ÎÊýµÄһЩд·¨

   ÔÚmxmlµÄapplicationÀà¿ÉÒÔͨ¹ýgeturl»ñÈ¡µ±Ç°url¡£»ñÈ¡url¿ÉÒÔÌṩһ¸öºÜºÃµÄ·½Ê½¶Ôswf´©²ÎÊý¡£ÔÚ¹«Ë¾µÄÏîÄ¿ÖоʹóÁ¿µÄÓ¦ÓÃÏà¹ØµÄ¼¼Êõ¡£¾ÍºÍ´ó¼Ò·ÖÏíÒ»ÏÂÏà¹ØµÄд·¨£¬Èç¹ûд²»ºÃ¾Í²»ÒªÐ¦»°Å¶¡£
   ·ÖÎöurl²ÎÊýÀࣺ
   package com.sunshine.framework.control
{
import com.sunshin ......

Flash PlayerºÍFlex¿ò¼ÜµÄ²»Í¬

Flash PlayerÊÇFlash/Flex³ÌÐòµÄÔËÐл·¾³¡£ËüÓÃÀ´ÔËÐÐ.swfÎļþ£¬Íê³É¼ÓÔØÍ¼Æ¬£¬»æÖÆÍ¼Ïñ£¬ÇëÇóHTTPµÈÖ®ÀàµÄ²Ù×÷¡£Flash/Flex³ÌÐòÖ»ÄÜ×öFlash PlayerÄܹ»×öµÄÊÂÇé¡£
Flex³ÌÐò¾ÍÊÇFlash³ÌÐò£¬Flash²»ÄÜ×öµÄÊÂÇ飬FlexÒ»Ñù²»ÄÜ×ö¡£ËùÒÔ³ÌÐò°üº¬µÄÖ»²»¹ýÊǾßÌåÖ¸Á¶øFlash PlayerÔòÊÇÔËÐÐÖ¸Áî¡£Flash³ÌÐòºÍFlex³ÌÐòÔÚÄÚÈÝÉÏà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ