ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


onEnterFrameÀÇ Á¦°Å - this - parent
13³â Àü
onEterFrame À̺¥Æ®¸¦ ÀûÀýÇÑ ½ÃÁ¡¿¡¼­ Á¦°Å.

->ºÎµå·¯¿î ¿òÁ÷ÀÓ.. (¸ñÀûÁö±îÁö µµÂøÈÄ¿£ ÇÊ¿ä°¡ ¾ø´Â ¾×¼Ç)
   delete this.onEnterFrame;

----------------------------------------------------------------------------------------

¿¹Á¦1)

_root._mc.count = 0;

_root._mc.onEnterFrame = function(){
this._x = this._x + 0.2 *(500 - this._x);

//°ÅÀÇ ¸ñÀûÁö¿¡ µµÂøÇϸé, ¸Å ÇÁ·¹ÀÓ¸¶´Ù ÇÒ ÀÏ Á¦°Å
if ( ++this.count > 30 ){
  this._x = 500;
  delete this.onEnterFrame;
}
};
// ¼Óµµ°è¼ö°¡ 0.2À϶§´Â ´ë·« 30ÇÁ·¹ÀÓÁ¤µµ¸é ¸ñÀûÁö¿¡ µµ´ÞÇÑ´Ù



----------------------------------------------------------------------------------------

¿¹Á¦2)

/* ÀϹÝÀûÀÎ ÄÚµù
_root._mc.onEnterFrame = function(){
this._x = this._x + 0.2* (this.tx - this._x);
this._y = this._y + 0.2 * (this.ty - this._y);
};
_root._mc.onMouseDown = function(){
this.tx = _root._xmouse;
this.ty = _root._ymouse;
};     */



/* ¸¶¿ì½º¸¦ ´©¸£¸é
¸¶¿ì½º À§Ä¡¸¦ tx, ty·Î ÀúÀåÇϱâ
_mc´Â ¸Å ÇÁ·¹ÀÓ¸¶´Ù tx, ty·Î ºÎµå·´°Ô À̵¿ÇÑ´Ù.
¸ñÀûÁö¿¡ µµÂøÇϸé, ¸Å ÇÁ·¹ÀÓ¸¶´Ù ÇÒ ÀÏ Á¦°Å. */


  _root._mc.onMouseDown = function(){
  this.tx = _root._xmouse;
this.ty = _root._ymouse;
this.count = 0;

this.onEnterFrame = function(){
  this._x = this._x + 0.2 * (this.tx - this._x);
  this._y = this._y + 0.2 * (this.ty - this._y);
  
  // 30ÇÁ·¹ÀÓ Áö³­ ÈÄ ¸ñÀûÁö µµÂøÇϸé onEnterFrame Á¦°Å
  if ( ++this.count > 30){
   delete this.onEnterFrame;
  }; //if
};//onEnterFrame
}; //onMouseDown


=======================================================================================

<this >
- ¿øÄ¢ : ÇÁ·¹ÀÓÀ» Æ÷ÇÔÇÏ´Â ¹«ºñŬ¸³
- ¿¹¿Ü : {ÄݹéÇÔ¼ö ¾È¿¡¼­}{¸í½ÃÀûÀ¸·Î(this¸¦ ¾´°æ¿ì) ¾´ this} ´Â ÄݹéÇÔ¼ö¸¦ È£ÃâÇÑ °´Ã¼¸¦ °¡¸®Å²´Ù.

this ´Â »ý·«ÀÌ °¡´ÉÇÏ´Ù.
¸ðµç º¯¼ö´Â ÁÖÀÎÀ» °¡Áø´Ù ==> ÁÖÀÎÀº ¹«ºñŬ¸³ÀÌ µÈ´Ù.

_root.bird_mc.onEnterFrame = function(){
bbb = 20;   ==>_root.bbb = 20;
this.bbb = 30;  ==>¿¹¿ÜÀÇ this (_root.bird_mc.bbb = 30;)

};

=======================================================================================
* Àý´ë°æ·Î : _rootºÎÅÍ ½ÃÀÛÇؼ­  °¢ ¹«ºñÅ©¸³µéÀ» Á¢±ÙÇØ °¡´Â ¹æ¹ý
* »ó´ë°æ·Î : _root¸¦ »ç¿ëÇÏÁö ¾Ê°í this¿Í _parent(ÇöÀç °¡¸®Å°°í ÀÖ´Â ¹«ºñŬ¸³ÀÇ ÇÑ´Ü°è À§ÀÇ ¹«ºñŬ¸³)¸¦
     ÀÌ¿ëÇؼ­ Á¢±Ù

_root.bird_mc.onMouseDown = function(){
this.aaa = 10;  ==> _root.bird_mc.aaa = 10;
this._parent.aaa = 30; ==>_root.aaa = 30;
ccc = 50;   ==>_root.ccc = 50;

};
ÃßõÃßõ : 437 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
1,805
µµ¸ÞÀΰ£ ÄíÅ°°øÀ¯
1,804
PHP ¼¼¼Ç ´Ù·ç±â
1,803
Ç÷¹½¬¿¡¼­ Web Page ºÒ·¯¿Ã¶§ ¿¡·¯ ´ëü ¹æ¹ý^^
1,802
php class »ç¿ë¹ý
1,801
RSS Reader ¸¸µé±â
1,800
php Ãʺ¸Å»Ãâ( Á¦¾î¹® if, else if ¹®)
1,799
php Ãʺ¸Å»Ãâ(¿¹¾à º¯¼ö)
1,798
php Ãʺ¸Å»Ãâ(¹è¿­)
1,797
php Ãʺ¸ Å»Ãâ (±âÃÊ ¹× º¯¼ö Æí)
1,796
php¿¡¼­ UTF-8, EUC-KR ÀÎÄÚµù º¯°æ
onEnterFrameÀÇ Á¦°Å/this/_parent
1,794
½ºÀ§½Ã ½ºÅ©¸³Æ® ¸í·É¾î
1,793
prototype ¸Þ¼Òµå ¿À¹ö¶óÀ̵ù
1,792
Ç÷¡½Ã ·£´ýÇÏ°Ô ºÒ·¯¿À±â
1,791
Javascript ¿¡¼­ ¾Ë¾Æ¾ßÇÒ ±âÃÊ»çÇ×
1,790
Javascript Array °´Ã¼ È°¿ë
1,789
delete this.onEnterFrame;¾×¼Ç ½ºÅ©¸³Æ®
1,788
startDrag ¾×¼Ç ½ºÅ©¸³Æ®
1,787
[i]¿¡ °üÇÑ°Í
1,786
¾×¼ÇÀ¸·Î ¹«ºñŬ¸³ ¿ÀÆĽÃƼ(Åõ¸íµµ) Á¶ÀýÇϱâ
1,785
·Îµå ¹«ºñ (load movie) ÀÀ¿ë
1,784
·Îµå ¹«ºñ (load movie) ÀÀ¿ë2 + ¿¹Á¦µé
1,783
·Îµå ¹«ºñ (load movie) Á¤ÀÇ
1,782
·Îµå ¹«ºñ (load movie) °³³ä/ÁÂÇ¥µµ ¼³Á¤
1,781
exe³ª swf ÀÚü·Î Ç÷¡½Ã°¡ Àüüȭ¸é µÇ´Â °Í(½ºÄÉÀÏ º¯ÇÏÁö ¾ÊÀ½)
1,780
ÅÚ³Ý ¸í·É¾î ¸ðÀ½
1,779
tar ¾ÐÃàÇϱâ Ç®±â ¿É¼ÇÆ÷ÇÔ
1,778
FullScreen(Ç®½ºÅ©¸°) - AS3.0, AS2.0[FLASH]
1,777
jpg ·Îµå¹«ºñ½Ã ÇÁ¸®·Î´õ ´Þ±â
1,776
div À§Ä¡ °áÁ¤ (·¹À̾ƿô Àâ±â)
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.