flex ʵÏÖÈ«ÎļìË÷ÖеĸßÁÁÏÔʾ´úÂë
<mx:DataGrid id="dg" click="select()" dataProvider= "{modelLocator.resultList}" borderStyle="none"
verticalGridLines="false" horizontalGridLines="false" verticalScrollPolicy="off" rowCount="10"
fontSize="16" fontStyle="normal" fontThickness="0" width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="programName " headerText="½ÚÄ¿Ãû³Æ" >
<mx:itemRenderer>
<mx:Component>
<mx:HBox width="100%" height="100%" horizontalAlign="left" verticalAlign="middle" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
override public function set data (value:Object):void
{
if(value != null)
{
super.data = value;
programXYZ.htmlText = data.programName;
//Alert.show(this.programXYZ.text);
}
}
]]>
</mx:Script>
<mx:Text id="programXYZ" />
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
¹Ø¼üÊÇÖØдÁË override public function set data(value:Object):void ·½·¨
Ïà¹ØÎĵµ£º
×î½üÔÚÏîÄ¿ÖÐÒªÓõ½flv²¥·ÅÆ÷£¬ÓÉÓÚflex×Ô´øµÄVideoDisplay×é¼þ²»ÊǺܺÃÓ㬾Í×Ô¼º¼òµ¥ÊµÏÖÁËÒ»¸ö£¬½çÃæ²»ÊǺÜÃÀ¹Û£¬µ«¹¦Äܶ¼ÓÐÁË£¬Õý¿ÉνÂéȸËäСÎåÔà¾ãÈ«¡£ÏÂÃæÊDz¥·ÅÆ÷µÄ´úÂ룬»¹²»»áÓÃflash×öflv²¥·ÅÆ÷µÄÅóÓÑ£¬¿ÉÒԲο¼²Î¿¼¡£
Player.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="ht ......
Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......
²âÊÔÎļþ´úÂëÈçÏ£ºµ¼Èëcom.hillelcoren.components°ü
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:hc="com.hillelcoren.components.*"
xmlns:classes="com.hillelcoren.components.autoComplete.classes.*"
xmlns:l ......
1¡¢µ±´´½¨Ò»¸öÊý×éµÄʱºò±ÜÃâÓÃnew²Ù×÷·û,Óà var a:Array = [];¶ø²»ÓÃvar a:Array = new Array();
2¡¢¿ìËٵĸ´ÖÆÒ»¸öÊý×飺
var copy : Array = sourceArray.concat ();
3¡¢ÉèÖÃÒ»¸öÊý×éµÄÖµÊǷdz£Ã¦µÄ£º
employees.push ( employee ); employees[2] = employee;
4¡¢´ÓÒ»¸öÊý×éÖÐÈ¡µÃÖµµÄËÙ¶ÈÊÇÉèÖÃÒ»¸öÊý×éÖµµÄÁ½±¶ ......