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

Àí½â flex component

component¾ÍÊÇÒ»¸öAS class »òÕßÊÇMXML componentÎļþÔÚmanifestÎļþÖÐÓ³ÉäµÄ±êÇ©.·Ö¿ÉÊӺͲ»¿ÉÊÓ
¿ÉÊÓ»¯component°üÀ¨Containers ºÍ UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
¿ÉÒÔͨ¹ý3ÖÖ·½Ê½ÉèÖÃcomponentµÄÊôÐÔ
1.tag attributers
Java´úÂë
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">   
</mx:Application>  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
</mx:Application>
ÖеÄlayout="absolute"
2.nested tags
Java´úÂë
<mx:Button id="exampleButton">   
  <mx:label>Example Button</mx:label>   
</mx:Button>  
<mx:Button id="exampleButton">
<mx:label>Example Button</mx:label>
</mx:Button>
¸üµäÐ͵ÄÓ¦ÓÃ
Java´úÂë
<mx:ComboBox id="exampleComboBox">   
  <mx:dataProvider>   
    <mx:ArrayCollection>   
      <mx:String>A</mx:String>   
      <mx:String>B</mx:String>   
      <mx:String>C</mx:String>   
      <mx:String>D</mx:String>   
    </mx:ArrayCollection>   
  </mx:dataProvider>   
</mx:ComboBox>  
<mx:ComboBox id="exampleComboBox">
<mx:dataProvider>
<mx:ArrayCollection>
<mx:String>A</mx:String>
<mx:String>B</mx:String>
<mx:String>C</mx:String>
<mx:String>D</mx:String>
</mx:ArrayCollection>
</mx:dataProvider>
</mx:ComboBox>
3.AS ;)
¼¸ºõËùÓеÄcomponent(ËùÓеĿÉÊÓ»¯component)¶¼ÓÐidÊôÐÔ...(Âð¶«¶«Ã»ÓÐÄØ?),id ÓÉÊý×Ö


Ïà¹ØÎĵµ£º

Flex·ÖÒ³×é¼þ

ÓкÃÓõĶ«Î÷Ò»¶¨Òª¹²Ïí¡£
PaginationDataGrid.mxmlÎļþ·ÖÒ³×é¼þ
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script source="../../../common/utils/Commo ......

Flex MD5 ¹¤¾ßÀà

package util
{
public class MD5
{
private var hexcase:int = 0;
private var strsize:int = 8;
static private var md5:MD5;
static public function getInstance():MD5
{
if(!md5)
{
md5 = new MD5()
}
return md5;
}
public function getMD5(s:String):String
{
return binl2hex(core_md5(str2binl(s ......

FlexÖеÄRemoteClass meta tagµÄʹÓÃ˵Ã÷

簡單µÄ來說£¬RemoteClassÊÇÔÚ編寫 ActionScript Class 檔時¸æÖª該 ActionScript Class ÊÇ對應µ½ÄÄ個遠¶¨¶ËµÄ Class 檔(·ÇActionScript),舉個Àý×Ó來說£¬ÈôÔÚ遠µØ¶ËÓÐ個 Java Object Ãû為 T ......

ÉîÈë·ÖÎöFlex [Bindable] ÒÔ¼°Ê¹Ó÷½·¨

[Bindable]´ó¸ÅÓÖÊÇFlexÓõÃ×î¶àµÄÔªÊý¾ÝÁË¡£¸Õ¿ªÊ¼ÓÃÓÃȷʵºÃ¼òµ¥£¬Ð§ÂÊÕæÊÇûµÄ˵¡£²»¹ýÕ⼸ÌìÓÃ×ÅÈ´Åöµ½ÁËЩÎÊÌ⣬ÎÒ×Ô¼ºËѼ¯ÁËЩ×ÊÁÏ£¬
Ïë×ÅÓбØÒªÔÚblogÀï×ܽáһϰɡ£
ɶÊÇÔªÊý¾Ý£¨metadata£©
ÖªµÀ¾ÍÌø¹ý°É¡£½ñÌì²»ÏþµÃΪʲô
livedoc.adobe.comÕâôÂý£¬Ã»°ì·¨£¬Äò»µ½È¨ÍþµÄ½âÊÍÁË¡£ÎҾͰ´×Ô¼ºµÄÀí½âËæ±ã½âÊÍÒ»Ï ......

flex module ʵÀý

module ½Ó¿ÚÎļþ PictureWindowInterface.as
package
{
public interface PictureWindowInterface
{
function setSelectIndex(index:int):void
}

moudule Îļþ PictureWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ