Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

C#ÓëFlash½»»¥

C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
Ç°¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......

ÓÃActionScriptÔÚFlashÖÐʵÏÖ3DÊӽǵĿØÖÆ

±¾ÎÄÀ´×Ô£º9RIA
Flash
CS4רҵ°æµÄ3DÄÜÁ¦ÔÊÐíÎÒÃǽøÐб佹ºÍ͸ÊӽǶȵĸı䣬¶øÇÒËûµÄÇ¿´ó3D´¦ÀíÊýѧº¯ÊýÈÃËüÔÚ3D³¡¾°µÄÄÚÍâµ¼º½ÆðÀ´¸ü¼Ó¼òµ¥¡£ÏÖÔÚÓÎÏ·¿ª·¢ÕߺͶ¯»­¼Ò
ÃÇÄܹ»Çá¶øÒ׾ٵĵ¼ÈëÈýάÊÓͼºÍÔ˶¯Ð§¹ûÁË¡£
Õâ¸ö½Ì³Ì̽ÌÖµÄÁ½ÖָıäÎę̀ÏÔʾЧ¹ûµÄ·½·¨
ͨ¹ýÒƶ¯ºÍ±ä½¹¸Ä±ä¹Û²ìµã
ÔÚÈýά¿Õ¼äÀïÒƶ¯¶ÔÏó±¾Éí
Ò ......

Ò»²½Ò»²½Ñ§Flash Media Server


´Ó½ñÌìÆð,ÎÒÃÇÀ´Ñ§Ï°Ò»Ï Flash Media Server£¬¼ò³ÆFMS£¬´ÓÃû×ÖÉÏÎÒÃÇ¿ÉÒÔ¿´³öÕâÊÇÒ»¸öýÌå·þÎñÆ÷£¬ÆäËü¼òµ¥µãÀí½â¾ÍÊÇÒ»¸ö½»»¥·þÎñÆ÷£¬¶øÇÒ¿ÉÒÔʵÏÖýÌå·½ÃæµÄ½»»¥£¬ÎÒÃÇ¿ÉÒÔÀûÓÃËüÀ´Íê³ÉһЩÍøÂç°æµÄFLASH³ÌÐò£¬±ÈÈçÁÄÌìÊÒ£¬ÍøÂç°æµÄ²»ÊǺܸ´ÔÓµÄÓÎÏ·£¬µÈµÈ¡£
 
´ó¼Ò¿ÉÒÔµ½ÈçϵØÖ·ÏÂÔØ×îеÄ3.0°æ±¾:
http://w ......

Flash ÓëÊýѧ£ºÐÇÐÎÏß

  
  ½ñÍíÎÒÃÇÀ´ÍæÍæÕâÖÖÏß»æÖÆ£¬ÐÇÐÎÏß¡£ ÔÚ´óѧµÄÀïÃæ½âÎö¼¸ºÎµ±ÖУ¬°ÑÕâÖÖÇúÏß½Ð×öËļâµãÐÇÐÎÏß¡£ÓÉÓÚËüµÄÐÎ×´ÈçÐÇÐÇ ³ÆÉÏÕâ¸öÃû³ÆÒ²²»ÎÞµÀÀí£¬¿´µ½ÕâÖÖÏßµÄʱºò£¬ÄãÊÇ·ñ»áÐí¸öÔ¸ÍûÄØ£¿Ò»ÆðÀ´°É
ÐÇÐÎÏß¹«Ê½£º
   x=a*cos3A
   y=a*sin3A   
 
¹«Ê½ºÜ¼òµ¥ ......

iPadȱ·¦¶àÈÎÎñºÍFlashÖ§³ÖÊÇÑÏÖØȱÏÝ

¡¡¡¡Ò»Ð©Æ»¹û°®ºÃÕßÒÑÔÚ¸ÃÁãÊÛµêÖÜΧÅŶÓÊýÌìʱ¼ä¡£¶ÓÎé·ÖΪÁ½Ìõ£¬Ò»ÌõÕë¶Ô´ËÇ°ÒÑÔÚÏßÔ¤¶©iPadµÄÓû§£¬ÁíÒ»ÌõÔòÕë¶ÔÏ£ÍûÖ±½ÓÔÚÉ̵êÖйºÂòiPadµÄÏû·ÑÕß¡£´Óµ±µØʱ¼äÉÏÖÜÁùÉÏÎç9µã¿ªÊ¼£¬ÈËÁ÷¿ªÊ¼»º»º½øÈëÆ»¹ûÁãÊÛµêÖУ¬Ò»´Î·ÅÐÐ10ÈË»ò15ÈË¡£ÄѵÀiPadÕæµÄÊÇÒ»´úÉñ»ú£¿ÏÂÀ´Ð¡±à´øÄã×ß½øiPad......
¡¡¡¡¹¤ÒµÉè¼Æ
¡¡¡¡iPadÅ䱸Á ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ