Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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µÄLoading½çÃæ

Ê×ÏÈ~×Ô¶¨ÒåFlex¼ÓÔØµÄÔ­ÀíÆäʵ¾ÍÊǼ̳Ðmx.preloaders.DownloadProgressBarÀà..È»ºóÖØÐ´Ïà¹ØµÄ·½·¨..
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.TextField;
import flash.text.TextFormat;
import mx.events.FlexEven ......

FlexÔÚ¼àÌýº¯ÊýÀï´«µÝ²ÎÊý

ʹÓÃÄÚÁªº¯Êý
private function ABCButtonListener(e:MouseEvent,specialObj:Object): void
{
Alert.show(specialObj.name);
}
private function methodWhereyouDostuffAndRegisterListener(): void
{
var myPrivateSpecialObject:Object = {name:"Special String Ingredients for Orange"};
......

flex µ¹¼ÆÊ± Program niche


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Style source="skin/yflexskin.css" />
    <mx:Script>
        <! ......

ÉîÈë·ÖÎö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ºÅ