Flex Timer¶¨Ê±Æ÷µÄÓ¦Óã¨×ª£©
flash.util.TimerÀà
flash.util.TimerÀàÔÊÐíͨ¹ýÌí¼Óʱ¼äʼþ»òÑÓʱÀ´µ÷Ó÷½·¨¡£Í¨¹ýTimer¹¹ÔìÆ÷´´½¨ÊµÀý¶ÔÏ󣬴«µÝÒ»¸öºÁÃëÊý×Ö×÷Ϊ¹¹Ôì²ÎÊý×÷Ϊ¼ä¸ôʱ¼ä£¬ÏÂÃæµÄÀý×ÓʵÀý»¯Ò»¸öTimer¶ÔÏóÿ¸ö1ÃëÖÓ·¢³öʼþÐźţº
var timer:Timer = new Timer(1000);
Ò»µ©´´½¨ÁËTimerʵÀý£¬ÏÂÒ»²½±ØÐëÌí¼ÓÒ»¸öʼþ¼àÌýÆ÷À´´¦Àí·¢³öµÄʼþ£¬Timer¶ÔÏó·¢³öÒ»¸öfalsh.event.TimerEventʼþ£¬
ËüÊǸù¾ÝÉèÖõļä¸ôʱ¼ä»òÑÓʱʱ¼ä¶¨Ê±·¢³ö¡£ÏÂÃæµÄ´úÂ붨ÒåÁËÒ»¸öʼþ¼àÌý£¬µ÷ÓÃonTimer()·½·¨×÷Ϊ´¦Àíº¯Êý£º
timer.addEventListener(TimerEvent.TIMER, onTimer);
function onTimer(event:TimerEvent):void{
trace("on timer");
}
Timer¶ÔÏó²»»á×Ô¶¯¿ªÊ¼£¬±ØÐëµ÷ÓÃstart()·½·¨Æô¶¯£º
timer.start();
ĬÈÏÇé¿öÏÂÖ»Óе÷ÓÃstop()·½·¨²Å»áÍ£ÏÂÀ´£¬²»¹ýÁíÒ»ÖÖ·½·¨ÊÇ´«µÝ¸ø¹¹ÔìÆ÷µÚ¶þ¸ö²ÎÊý×÷ΪÔËÐдÎÊý£¬Ä¬ÈÏֵΪ0¼´ÎÞÏ޴Σ¬ÏÂÃæµÄÀý×ÓÉ趨¶¨Ê±Æ÷ÔËÐÐ5´Î£º
var timer:Timer = new Timer(1000, 5);
ÏÂÃæµÄ´úÂëÉ趨¶¨Ê±Æ÷ÑÓʱ5ÃëÖ´ÐÐdeferredMethod()·½·¨£º
var timer:Timer = new Timer(5000, 1);
timer.addEventListener(TimerEvent.TIMER, deferredMethod);
timer.start();
Ïà¹ØÎĵµ£º
ÓкÃÓõĶ«Î÷Ò»¶¨Òª¹²Ïí¡£
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ҲдÁË2Äê¶àÁË£¬¾ÓÈ»»¹Ã»ÓÐÓùýpureMVC»òÕßCairngromÕâÑùµÄMVC¿ò¼Ü£¬¸öÈ˾õµÃÓе㶪ÈËÁË¡£´ó¸Å¿´ÁËһϣ¬¿ò¼ÜµÄ½á¹¹ºÍÒÔÇ°×Ô¼º¿ª·¢µÄʱºò²î²»¶à¡£µ«ÊÇ£¬ËäÈ»ÊÇÒ»Ñù£¬Ò²²»¹»×¨Òµ°¡£¬ÓÚÊÇ·¢Á˰Ѻݣ¬¿ªÊ¼¾ö¶¨Ñо¿ÏÂCairngorm£¬²»ÄÜÂäºó²»ÊÇ^^¡£ÏÈÁ˽âÏÂCairngormµÄ·Ö²ã˼Ï룺
ʲôÊÇCairngorm
cairngormÖÐÎÄÃûÊÇ&ldquo ......
Application×é¼þÑùʽÊôÐÔ
backgroundImage ±³¾°Í¼ ʹÓÃEmbed(source=" ");À´Ó¦ÓÃ
& ......
µ±ArrayµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬ÓÃËü×÷ΪÊý¾ÝÔ´µÄ¿Ø¼þ²»ÄܸÐÖªÕâÖֱ仯¡£
ÀýÈ磺myArray.push("new value"); Õâʱ£¬Èç¹ûÒ»¸öListÓÃËü×÷ΪdataProvider£¬ListµÄÁбíÖв»»áÔö¼ÓмÓÈëµÄÕâ¸öÖµ¡£
¶øµ±ArrayCollectionµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬Äܹ»Í¨Öª¿Ø¼þ·¢Éú±ä»¯¡£
ÀýÈ磺myArrayCollection.addItem("new item"); Õâʱ£¬È ......
FlexÔÚºÍjavaµ÷Óùý³ÌÖУ¬ÆäʵÓиü¼ÓÁé»îµÄ°ì·¨À´Ìá¸ßϵͳµÄÃô½Ý¶È£¬¼«´óÌá¸ßϵͳµÄñîºÏºÍ¿ª·¢Ð§ÂÊ¡£ÔÚÕâÀïÎÒ¼ÌÐø¸ø´ó¼Ò½éÉÜһϣ¬Ãô½Ýµ÷ÓÃÖеÄjava¶¯Ì¬´úÂëµ÷Óá£
ÏÈ¿´javaµÄÀà(BeanShell)ÕâÀïÖ÷ÒªÊǽÓÊÕjava´úÂëÀ´¶¯Ì¬µ÷ÓõÄ
package com.shine.framework.be ......