Flash Player֡Ƶ¡¢Timer¼Æʱ µÄʱ¼ä¼ä¸ô
¶ÔÓڴ󲿷ÖFlash¿ª·¢Õߣ¬¶¼ÒѾ֪µÀFlashµÄ֡Ƶ¡¢Timer¼Æʱ²¢²»ÊÇÊ®·Ö¾«È·µÄ¡£Èç¹ûÄúÒѾ×ö¹ýÕâ·½Ãæ²âÊÔ£¬¿ÉÒÔÂÔ¹ýÕâƪÎÄÕµÄÇ°ÃæÒ»²¿·Ö£¬ÔÚºóÃæÓйØÓÚFlash Player¿É±äÅܵÀµÄÎÄÕÂÁ´½Ó£¬Ï£Íû¶ÔÄúÓаïÖú¡£ÕâƪÎÄÕµÄÖ÷ҪĿµÄÊÇÈÃһЩ²»ÖªµÀFlash¼Æʱ²»¾«È·ºÍÖªµÀµ«ÓÖûÓÐ×ö¹ý²âÊÔµÄÅóÓÑ£¬À´·ÖÏíÎҵIJâÊÔ½á¹û¡£ÎÒʹÓõÄFlex¿ª·¢¹¤¾ß£¬²¢´´½¨ÁËÒ»¸öActionScriptÏîÄ¿¡£
²âÊÔÎÒ¾¡Á¿Ê¹ÓÃ×î¼òµ¥µÄ´úÂ룬ÏÂÃæÊÇÕë¶ÔÓÚTimerµÄ²âÊÔ´úÂ룬ÉèÖÃÁËÒ»¸ö20ºÁÃëÿ´ÎµÄTimer£¬ÎªÁ˼òµ¥ÎÒÖ»¼Æʱ5´Î£º
package
{
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.utils.getTimer;
public class TimerTest extends Sprite
{
// ¶¨ÒåÒ»¸ö¼ÆʱÆ÷
private var timer:Timer;
// ¼Ç¼ÉÏÒ»´Î¼ÆʱµÄʱ¼ä
private var prev:int;
public function TimerTest()
{
// ¼ÆʱÆ÷³õʼ»¯Îª20ºÁÃëÖ´ÐÐÒ»´Î£¬Ö´ÐÐ5´Îºó½áÊø
timer = new Timer(20, 5);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
// Æô¶¯¼ÆʱÆ÷ºó£¬¼Ç¼һϵ±Ç°Ê±¼ä
prev = getTimer();
}
private function onTimer(event:TimerEvent):void
{
// ¼ÆʱÆ÷Ö´ÐУ¬»ñÈ¡µ±Ç°Ê±¼ä
var t:int = getTimer();
// ´òÓ¡³öµ±Ç°Ê±¼äÓëÉÏÒ»´Î¼ÆʱµÄʱ¼ä¼ä¸ô
trace(t - prev);
// ¼Ç¼Ïµ±Ç°Ê±¼ä
prev = t;
}
}
}
/** Êä³ö½á¹û
26
28
38
27
20
**/
ÔËÐÐÒ»ÏÂÕâ¸ö³ÌÐò£¬¿ÉÒÔ¿´µ½Êä³öµÄ½á¹û²¢²»ÊÇ׼ȷµÄ20ºÁÃ룬ÿ´ÎÔËÐеĽá¹û¶¼²»Ò»Ñù£¬²¢ÇÒ¶¼´óÓÚµÈÓÚ20ºÁÃ룬ÓÉ´Ë¿ÉÒԵóöTimerµÄ¼Æʱ²¢²»ÊǾ«È·µÄ¡£
¼ÌÐø¿´Ã¿´ÎFlash֡ƵµÄʱ¼ä¼ä¸ô£¬Õâ¸ö²âÊÔÀý×ÓÖУ¬ÉèÖÃÁË֡ƵΪ25֡ÿÃ룬ÀíÂÛÉÏÁ½Ö¡Ö®¼äµÄʱ¼ä¼ä¸ôΪ40ºÁÃë(1000ºÁÃë / 25Ö¡)£º
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.utils.getTimer;
// ÉèÖÃswfµÄ֡ƵµÄ25֡ÿÃë
[SWF(frameRate = 25)]
public class EnterFrameTest extends Sprite
{
// ¼Ç¼ÉÏÒ»´Î¼ÆʱµÄʱ¼ä
private var prev:int;
public function EnterFrameTest()
{
// ¼àÌýENTER_FRAMEʼþ
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
// ¼Ç¼µ±Ç°Ê±¼ä
prev = getTimer();
}
private function onEnterFra
Ïà¹ØÎĵµ£º
Ò»°ãflash½ØÆÁ¶¼ÊÇͨ¹ýCAxWindowÀàÀ´×°ÔØflash¿Ø¼þµÄ¡£
µÚÒ»¸öҪעÒâµÄÊÇ£º
flashÊÇÒ»¸öactivex¿Ø¼þ£¬´´½¨¸Ã¿Ø¼þµÄÏß³ÌÈç¹ûûÓÐÏûϢѻ·»úÖÆ£¬ÄÇôflash¿Ø¼þ½«ÎÞ·¨Õý³£ÔË×÷£¬¾Ù¸öÀý×Ó£¬flashÏìÓ¦WM_TIMERÏûÏ¢½øÐв¥·Å£¬Èç¹ûûÓÐÏûϢѻ·»úÖÆ£¬½«ÎÞ·¨ÏìÓ¦WM_TIMERÏûÏ¢¡£Òò´ËÈç¹ûÏëҪͨ¹ý´´½¨Ò»¸öÏß³ÌÀ´Ö´ÐÐflash½ØÆÁ¹¦ÄÜ£¬ ......
Ò»¡¢Nor flash(drivers\mtd\maps\at91rm9200_nor.c)
static struct mtd_partition partitions[] = {
{
.name = "Bootloader",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_WRITEABLE /* force read-only */
......
¸²¸ÇÔDEDE´úÂë,×Ô¼º¸ü¸Ävar configtg="0xffffff:ÎÄ×ÖÑÕÉ«|2:ÎÄ×ÖλÖÃ|0x000000:ÎÄ×Ö±³¾°ÑÕÉ«|30:ÎÄ×Ö±³¾°Í¸Ã÷¶È|0xffffff:°´¼üÎÄ×ÖÑÕÉ«|0x4f6898:°´¼üĬÈÏÑÕÉ«|0x000033:°´¼üµ±Ç°ÑÕÉ«|8:×Ô¶¯²¥·Åʱ¼ä|3:ͼƬ¹ý¶ÉЧ¹û|1:ÊÇ·ñÏÔʾ°´Å¥|_blank:´ò¿ªÐ´°¿Ú";
<mce:script language='javascript'><!--
linkarr = new ......
À´Ô´£ºhttp://club.it.sohu.com/r-it-1350941-0-0-0.html
Ç°ÑÔ
×î½ü¹ØÓÚHTML5 ³³µÃ»ðÈÈ£¬ºÜ¶àÈËÈÏΪHTML5³öÏÖ»áÃëɱFlash£¬ÒÔÖÁÓÚÔÚ¸÷´ówebÇ°¶Ë¿ª·¢ÂÛ̳³³µÃ²»¿É¿ª½»¡£ÂÛ̳ÀïÈýÑÔÁ½Óï˵µÄ²»¹»¾¡ÐË£¬Ö»ºÃÔÚ×Ô¼ºÒ»Ä¶Èý·ÖµØÀﳨ¿ªÁË˵˵¡£Ò²µ±Ò»´ÎÉñ¹÷£¬Õ¹ÍûÒ»ÏÂwebÇ°¶Ë¿ª·¢µÄδÀ´¡£
Ê×ÏÈÕâÀïËù˵µÄHTML5Ò²²»½öÖ¸HTML5 ......
http://www.52rd.com/Blog/Detail_RD.Blog_foxice_10404.html
http://www.foxice.net/techinfo_nandboot1.asp
Ò»ÖÖNAND FLASH×ÔÆô¶¯µÄз½·¨
foxice ·¢±íÓÚ 2007-8-27 15:29:00
1
Òý
ÑÔ
Ëæ×ÅÏû·ÑÀàµç×Ó²úÆ·°üÀ¨ PDA £¬ MP3
¡¢ÖÇÄÜÊÖ»úµÈÊÖ³ÖÉ豸µÄÊг¡ÐèÇóÖð²½À©´ó£¬²úÆ·¼äµÄ¾ºÕùÒ²Óú·¢¼¤ÁÒ£¬½µµÍ²úÆ·µÄÉè¼ ......