flash CS3.0 InteractiveObjectµÄdoubleClickʼþ
×÷ÕߣºØýÃû À´Ô´£º±¾Õ¾ÕûÀí ·¢²¼Ê±¼ä£º2010-02-24 09:42:10
ÎÒÃÇÏþµÃdoubleClickÊÂÇéÊÇÔÚas3ÖÐÐÂÔö¼ÓµÄÊÂÇé,ÎÒÃǾ³£ÐèÇóʹÓõ½Õâ¸öÊÂÇé,ÔÚas2ÎÒʱÆÚÐèÇó±¾ÈËдº¯ÊýÅбðË«»÷,ÔÚas3ÖоÍÄܹ»Ö±½ÓʹÓÃÕâ¸öÊÂÇéÁË,µ«ÊÇÔÚʹÓÃÕâ¸öÊÂÇéµÄʱ·ÖÓиöϸ½ÚÒª´ÎÒª,Ê×ÏÈÊÂÇéÊÇInteractiveObjectËùÊôµÄ,Òò¶ø´ÓInteractiveObject³Ð¼ÌÉÏÈ¥µÄ¶ÔÏó²Å¸ÉʹÓøÃÊôÐÔ,ÁíÍâÒ»¸öÊÇÒªÊ×ÏÈÉèÖÃdoubleClickEnabledÊôÐÔΪtrue,×î³õÕâ¸öÊÂÇéÊÇʹÓÃÄÚ²¿µÄÔª¼þ½ÓÄɵÄ(the instance receives doubleClick events within its bounds),ËùÒÔ¼ÙÈçÄãÒªÕìÌýµÄdoubleClickÊÂÇéµÄÔª¼þÄÚ²¿ÓдÓInteractiveObject³Ð¼ÌµÄÔª¼þ,ҪôÉèÖÃÕâЩԪ¼þµÄ mouseEnabledΪfalse,ҪôʹÓÃÄÚ²¿±¾À´À´ÕìÌýdoubleClickÊÂÇé.
1.ÄÚ²¿Ôª¼þ²»ÊÇ´ÓInteractiveObject³Ð¼ÌÉÏÈ¥,Äܹ»Ö±½ÓʹÓÃÔª¼þ½ÓÄÉÊÂÇé
//----------------------------------------------
var a:Sprite = new Sprite();
addChild(a);
var b = new Shape();
a.addChild(b);
b.graphics.beginFill(0x0);
b.graphics.drawRect(0,0,100,100);
b.graphics.endFill();
a.doubleClickEnabled = true;//ʹÓÃa½ÓÄÉ
a.addEventListener("doubleClick",dc);
function dc(e)
{
trace("dc");
}
2.ÄÚ²¿Ôª¼þÓжà¸ö´ÓInteractiveObject³Ð¼ÌÉÏÈ¥,Äܹ»Ê¹ÓÃ×îÉÏÃæµÄÔª¼þÀ´½ÓÄÉ,»òÕßÉèÖÃÆäËûÔª¼þ²»½ÓÄÉÊó±êÊÂÇé
//----------------------------------------------
var a:Sprite = new Sprite();
addChild(a);
var b = new Sprite();
a.addChild(b);
var c = new Sprite();
a.addChild(c);
b.graphics.beginFill(0x0);
b.graphics.drawRect(0,0,100,100);
b.graphics.endFill();
c.graphics.beginFill(0x0);
c.graphics.drawRect(0,0,100,100);
c.graphics.endFill();
c.mouseEnabled = false;//ÉèÖÃc²»½ÓÄÉÊó±êÊÂÇé,²Å¸ÉÈÃÉÏÃæµÄb½ÓÄÉ
b.doubleClickEnabled = true;//ʹÓÃb½ÓÄÉ
b.addEventListener("doubleClick",dc);
function dc(e)
{
trace("dc");
}
3.ÉèÖÃÒ»ÇеÄÄÚ²¿Ôª¼þ²»½ÓÄÉÊó±êÊÂÇé,ÕâÑù¾ÍÄܹ»Ê¹ÓÃÔª¼þÀ´½ÓÄÉdoubleClickÊÂÇé
//--------------------------------------------------------------------------------
var a:Sprite = new Sprite();
addChild(a);
var b = new Sprite();
a.addChild(b);
var c = new Sprite();
a.addChild(c);
b.graphics.beginFill(0x0);
b.graphics.drawRect(0
Ïà¹ØÎĵµ£º
flash²âÊÔÓиöÂé·³µÄÊÂÇé×ÜÊÇÒªÇ建´æ
ºóÀ´·¢ÏÖIEÓÐÉèÖÿÉÒÔÿ´ÎÈ¡×îеÄ
´ò¿ªinternetÑ¡Ïî
ä¯ÀÀÀúÊ·¼Ç¼ ϵãÉèÖÃ
È»ºóÔÚ ¼ì²éËù´æÍøÒ³µÄ½Ïа汾 ÉèÖÃΪ ÿ²Å·ÃÎÊÍøҳʱ
ÕâÑùÉèÖÃÒÔºó ÓиüеĻ° ie ¾ÍÄÜ×Ô¶¯È¡×îеÄÁË£¬ÒÔºó¾Í²»ÐèÒªÇ建´æÁË£¬·½±ãÁ˺ܶడ ......
Ò»¡¢»ù±¾ÔÀí¼°¹ý³Ì
Flashͨ¹ýExternalInterfaceÀàÓëÈÝÆ÷Ó¦ÓóÌÐò½øÐÐͨÐÅ¡£Îª´Ë£¬ExternalInterfaceÀàÌṩÁ½¸ö¾²Ì¬ÊôÐÔºÍÁ½¸ö¾²Ì¬·½·¨¡£
ExternalInterface.call(“º¯ÊýÃû”£¬[²ÎÊý…])·½·¨Ö´ÐÐÈÝÆ÷Ó¦ÓóÌÐòµÄ´úÂ룬¸Ã·½·¨ÖÁÉÙÐèÒªÒ»¸ö×Ö·û´®²ÎÊýÀ´Ö¸¶¨Òªµ÷Óõĺ¯ÊýÃû£¬ÆäËüÈκβÎÊý½«×÷Ϊ²ÎÊý±»´«µÝ¸ø± ......
NAND flashÎļþϵͳ
Ä¿Ç°flashµÄÎļþϵͳ±È½Ï¶à£¬ÓõıȽ϶àµÄ¾ÍÊÇJFFS2Îļþϵͳ¡£»ùÓÚNOR flashÉϵÄJFFS2Îļþϵͳ¿ÉÒÔ˵ËãÊDZȽϳÉÊìÁË£¬Ö§³ÖNAND flashµÄJFFS2Ò²ÒѾ·¢²¼ÁË¡£Ô´´úÂë¿ÉÒÔµ½http://www.linux-mtd.infradead.orgÉÏÃæÏÂÔØ¡£µ«ÊÇÔÚÎҵIJâÊÔ¹ý³ÌÖУ¬ÔÚnand flashÉϹҽӵÄJFFS2ÎļþÏµÍ ......
adodeµÄflash²¥·ÅÆ÷¿ÉνӰÏìÉîÔ¶£¬¸øÎÞÊýÓû§´øÀ´Á˺ÜѤÀöµÄÊÓ¾õЧ¹û¡£
¿ÉÒÔºÁ²»¿äÕŵØ˵£¬flash²¥·ÅÆ÷½â¾öÁËÍøÒ³µÄ¸´ÔÓ½»»¥ÎÊÌ⣬´Ó¶øΪ»¥ÁªÍøÌṩÁËÁ¼ºÃµÄÌåÑéЧ¹û£¬Ä¿Ç°
flash½¨Õ¾¡¢flashÈ«Õ¾¡¢flash Ó¦ÓÃÔÚÍøÒ³ÉÏÔ½À´Ô½¶à¡£»¥ÁªÍøÉÏflashµÄСӦÓÃÓëflashÕ¾¿Éν¶àÈçţë¡£
ÔÚÊÖ»úƽ̨ÉÏ·¢Õ¹ÈçºÎÄØ£¿ÊÖ»úÉÏÄ¿Ç ......
ÔÚhtmlÎļþÖÐǶÈëµÄ´úÂëÈçÏÂ:
<script type="text/javascript">
var xmlUrl="news.xml";
var swfURL="news.swf";
var img_Speed=2;
var page_Speed=3000;
var TextPosition="down";
var HeadlineColor="#ff0000";
var HeadlineFont="14px";
va ......