¿ìËÙÒµÎñͨµÀ

Flash V2×é¼þ¿ª·¢

×÷Õß ØýÃû¼¼Êõ À´Ô´ ·þÎñÆ÷¼¼Êõ ä¯ÀÀ ·¢²¼Ê±¼ä 2012-07-13
Ò»ÐÐÌí¼ÓÔªÊý¾Ý±ê¼Ç¡£ÔÚ¶¨Òå×é¼þʼþʱ£¬ÔÚÀඨÒåÖ®ÍâÌí¼ÓÔªÊý¾Ý±ê¼Ç£¬ÒԱ㽫ʼþ°ó¶¨µ½Õû¸öÀà¡£¶ÔÊôÐÔ¶øÑÔ£¬ÓÐÁ½¸ö±È½ÏÖØÒªµÄÔªÊý¾Ý£ºInspectableºÍInspectableList¡£

InspectableÔªÊý¾Ý¶¨ÒåÁËÔÚ¡°×é¼þ¼ì²éÆ÷£¨Component Inspector£©¡±Ãæ°åÖÐÏòÓû§ÏÔʾµÄ×é¼þµÄÊôÐÔ¡£Óï·¨ÈçÏ£º

[Inspectable( value_type=value [,attribute=value,...] ) ]

property_declaration name:type;

InspectableÔªÊý¾Ý»¹°üÀ¨Èô¸ÉÔªÊý¾Ý±ê¼Ç£º

¡¤name£ºÀàÐÍΪString£¨¿ÉÑ¡£©£¬ÊôÐÔÔÚ¿ª·¢Ãæ°åÖеÄÏÔʾÃû³Æ¡£

¡¤type£ºÀàÐÍΪString£¨¿ÉÑ¡£©Ö¸¶¨ÊôÐÔµÄÀàÐÍ¡£Èç¹ûÊ¡ÂÔ£¬ÔòʹÓÃÊôÐÔµÄÀàÐÍ¡£ÒÔÏÂÏÂÊǿɽÓÊܵÄÖµ£º Array¡¢ Object¡¢List¡¢String¡¢Number¡¢Boolean¡¢Font Name¡¢Color¡£

¡¤defaultvalue£ºÀàÐÍ¿ÉÒÔÊÇString»òNumber£¨±ØÐ裩¡£Ö¸¶¨ÊôÐÔµÄĬÈÏÖµ¡£

¡¤enumeration£ºÀàÐÍΪString£¨¿ÉÑ¡£©¡£Ö¸¶¨ÒÔ¶ººÅ·Ö¸ôµÄÊôÐԺϷ¨ÖµÁÐ±í¡£

¡¤category£ºÀàÐÍΪString£¨¿ÉÑ¡£©¡£½«ÊôÐÔ»®·Öµ½ÊôÐÔ¼ì²éÆ÷ÖеÄij¸öÌض¨×ÓÀà±ðÖС£

InspectableList ÔªÊý¾Ý¹Ø¼ü×ÖÓÃÓÚÈ·ÇеØÖ¸¶¨ÊôÐÔ¼ì²éÆ÷ÖÐÓ¦ÏÔʾ¿É¼ì²é²ÎÊýµÄÄĸö×Ó¼¯¡£¿ÉÒÔ½« InspectableList Óë Inspectable ×éºÏʹÓã¬ÕâÑù¼´¿ÉÒþ²Ø×ÓÀà×é¼þµÄ¼Ì³ÐÊôÐÔ¡£Èç¹û²»¸ø×é¼þµÄÀàÌí¼Ó InspectableList ÔªÊý¾Ý¹Ø¼ü×Ö£¬ËùÓпɼì²éµÄ²ÎÊý£¨°üÀ¨×é¼þ¸¸ÀàµÄ¿É¼ì²é²ÎÊý£©¶¼»áÏÔʾÔÚÊôÐÔ¼ì²éÆ÷ÖС£ÆäµÄÓï·¨ÈçÏ£º

[InspectableList("attribute1"[,...])]

// class definition

InspectableList ¹Ø¼ü×Ö±ØÐë½ô°¤×ÅÀඨÒåÇÒÔÚËü֮ǰ£¬ÒòΪËüÓ¦ÓÃÓÚÕû¸öÀà¡£

7¡¢¶¨Òå×é¼þµÄʼþ£¬Ê×ÏÈҪʹÓÃEventÔªÊý¾Ý¹Ø¼ü×ÖÉùÃ÷ʼþ¡£Event ÔªÊý¾Ý¹Ø¼ü×ÖÓÃÓÚ¶¨Òå×é¼þʼþ¡£ÆäÓï·¨ÈçÏ£º

[Event("event_name")]

ÔÚÀàÎļþÖбØÐë°Ñ Event Óï¾äÌí¼Óµ½ÀඨÒåÖ®Í⣬ÒԱ㽫ËüÃǰ󶨵½À࣬¶ø²»°ó¶¨µ½ÀàµÄÌض¨³ÉÔ±¡£Ê×ÏÈ×é¼þÀà»á¼Ì³Ð»ùÀàʼþ¡£Èç¹ûµ±Ç°¶¨Òå×é¼þµÄ»ùÀàÊÇUIComponent£¬ÄÇô¸Ã×é¼þÖÐÒѾ­°üÀ¨ÁËMovieClipÀà¡¢UIObjectÀàºÍUIComponentÀàµÄ28¸öʼþ¡£µ«ÊÂʵÉÏ£¬Õâ28¸öʼþ²¢²»ÊǶ¼¿ÉÒÔÓõġ£ÆäÔ­ÒòºÜ¼òµ¥£¬ÒòΪ×é¼þ¿ÉÒÔÓÐËüµÄ×é³É½á¹¹£¬×é¼þÄÚ²¿¿ÉÄÜ»¹ÓÐ×é¼þ»òÊÇÆäËüµÄÔª¼þʵÀý¡£×é¼þҪΪÓû§Ìṩһ¸öͳһµÄ½Ó¿Ú£¬¾Í±ØÐë³éÈ¡ÆäÄÚ²¿½á¹¹µÄijЩʼþ²¢°ÑËüÃǶ¨ÒåΪ×é¼þµÄʼþ£¬ÕâÊÇÒ»ÖÖ»ùÓÚ×é¼þÄÚ²¿×é³É½á¹¹µÄʼþ¡£±ÈÈç˵×é¼þ°üÀ¨Á½¸öÎı¾¿òT1ºÍT2£¬Õâʱ¿ÉÒÔ¸ù¾Ý×é¼þµÄ¹¦ÄÜÒªÇó°ÑT1µÄchangeʼþ·¢²¼Îª×é¼þµÄPPʼþ£¬¶ø°ÑT2µÄchangeʼþ·¢²¼Îª×é¼þµÄUUʼþ£¬µ±È»¹ØÓÚ×é¼þʼþµÄÃû³Æ¿ÉÒÔÓÉ×é¼þ¿ª·¢ÈËÔ±×Ô¼º¶¨Òå¡£

ÄÇô¾¿¾¹ÈçºÎΪ×é¼þ¶¨ÒåÒ»¸öеÄʼþÄØ£¿¶ÔÓÚÉÏÃæµÄÄǸöÀý×Ó£¬¿ÉÒÔ×öÈç϶¨Ò壺

//µ¼ÈëÀà

import mx.core.UIComponent;

//ÓÃÔªÊý¾ÝÉùÃ÷×é¼þʼþ

[Event("PP")]

[Event("UU")]

//Ö¸Ã÷¸ÃÀà´ÓUIComponent¼Ì³Ð

class T_T extends UIComponent

{

//Ôڱ༭»·¾³ÖÐÒѾ­´´½¨Á½¸öÊäÈëÎı¾£¨Input Text£©£¬²¢ÔÚÀàÖÐÉùÃûÆäÒýÓá£

var T1:TextField;

var T2:TextField;

//¶¨Òå¹¹Ô캯Êý

function T_T()

{

//ÔÚ¹¹Ô캯ÊýÖз¢²¼T1µÄchangeʼþ

T1.onChanged=function()

{ //´´½¨Ò»¸öʼþ¶ÔÏ󣬴æ·ÅÓëʼþÏà¹ØµÄÐÅÏ¢

var eventObj = new Object();

//¶¨ÒåʼþÀàÐ͵ÄÃû³Æ

eventObj.type = "PP";

//Ö¸Ã÷ʼþ¹ã²¥£¨·¢Éú£©µÄ¶ÔÏó

eventObj.target = _parent;

//°Ñʼþ×÷Ϊ×é¼þµÄʼþ·¢²¼

_parent.dispatchEvent(eventObj);

}



//ÔÚ¹¹Ô캯ÊýÖз¢²¼T2µÄchangeʼþ

T2.onChanged=function()

{

var eventObj = new Object();

eventObj.type = "UU";

eventObj.target =_parent;

_parent.dispatchEvent(eventObj);

}

}

}ÔÚÒÔÉÏ´úÂëÖУ¬ÏÈÓÃÔªÊý¾ÝÉùÃ÷ÁË×é¼þµÄÁ½¸öʼþUUºÍPP£¬È»ºóÓÖÔÚ×é¼þÀàµÄ¹¹Ô캯ÊýÖж¨ÒåT1ºÍT2µÄchangeʼþ£¬²¢ÔÚËüÃǵÄchangeʼþÖÐÓÃ_p

ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!

·ÖÏíµ½£º ¸ü¶à
Äã¿ÉÄܶÔÏÂÃæµÄÎÄÕ¸ÐÐËȤ
HTTP/1.1 401 Access Denied ®¾§ÖʸÐË®¾§Æ»¹û" target="_blank">Photoshop»æÖƸ߹âË®¾§ÖʸÐË®¾§Æ»¹û

Copyright ©1999-2011 ÏÃÃÅÁèÖڿƼ¼ÓÐÏÞ¹«Ë¾ ÏÃÃÅÓÅͨ»¥Áª¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾ All rights reserved

µØÖ·(ADD)£ºÏÃÃÅÈí¼þÔ°¶þÆÚÍûº£Â·63ºÅ701E£¨¶«ÄÏÈÚͨÅÔ£© Óʱà(ZIP)£º361008

µç»°£º0592-5908028 ´«Õ棺0592-5908039 ×ÉѯÐÅÏ䣺web@lingzhong.cn ×ÉѯOICQ£º173723134

¡¶ÖлªÈËÃñ¹²ºÍ¹úÔöÖµµçÐÅÒµÎñ¾­ÓªÐí¿ÉÖ¤¡·ÃöB2-20100024  ICP±¸°¸:ÃöICP±¸05037997ºÅ