»Ç¶ó´åÄÄ
Loading...




À¥µðÀÚÀÎ,Æ÷Åä¼¥,±×´©º¸µå,Á¦·Îº¸µå,µ¿¿µ»óÁ¦ÀÛ °ü·Ã ¸Þ¸ð >>


¦­Àüü(437)¦­ÀÎÅͳÝ,ÄÄÇ»ÅÍ (94) | À¥µðÀÚÀÎtip (182) | CG,±×·¡ÇÈtip (70) | BBS_Tip (74) | ¿µ»ótip (17) |
Ç÷¡½Ã¾×¼Ç½ºÅ©¸³Æ® 2009-02-09 11:39:19
ȨÆäÀÌÁöȨÆäÀÌÁö

----------------------------------------------------------------------------
// .....       ÁÖ¼® ±âÈ£ 
/* ..... */    ÁÖ¼® ±âÈ£ 
----------------------------------------------------------------------------
\r        // ¸®ÅÏ ÄÚµå  (ASC 13)
\n        // ÁÙ¹Ù²Þ ÄÚµå (ASC 10)
\r\n      // ÁÙ¹Ù²Þ ÄÚµå  (2ÁÙ)
\t        // Tab ÄÚµå (ASC 9)
\b        // Backspce ÄÚµå (ASC 8)
&         // text ÆÄÀÏ µ¥ÀÌŸ ±¸ºÐ ÄÚµå
----------------------------------------------------------------------------
»ê¼ú¿¬»êÀÚ  +, -, *, /, %                 //  %  ³ª¸ÓÁö¸¦ ±¸ÇÑ´Ù
´ëÀÔ¿¬»êÀÚ  =, +=, -=, *=, /=, %=         //  i+=4 ¿Í  i=i+4 ´Â °°´Ù
Áõ°¨¿¬»êÀÚ  ++, --                        //  i++  ¿Í   i=i+1 ´Â °°´Ù 
ºñ±³¿¬»êÀÚ  ==, !=, >, <, >=, <=          //  !=  '°°Áö¾Ê´Ù' ·Î Çؼ®
ºñ±³¿¬»êÀÚ  ===                           //  ¼ýÀÚ ¿Í ¹®ÀÚ ±¸ºÐ
a = 5;    b = "5";                        //  ¼ýÀÚ 5 ¿Í ¹®ÀÚ "5"
(a == b)                                  //  ¼ýÀÚ 5 ¿Í ¹®ÀÚ "5"  ´Â °°´Ù (true)
(a === b)                                 //  ¼ýÀÚ 5 ¿Í ¹®ÀÚ "5" ´Â Ʋ¸®´Ù (false)
³í¸®¿¬»êÀÚ  &&, ||, !                     //  ±×¸®°í(AND), ¶Ç´Â(OR), ¾Æ´Ï¸é(NOT)
Á¶°Ç¿¬»êÀÚ  ?    ( a ) ? b : c ;          //  a Á¶°ÇÀÌ ¸ÂÀ¸¸é b Ʋ¸®¸é c ½ÇÇà
x=5;  y=10;  z=(x<6) ? x: y;   trace (z); //  z Àº 5 ÀÌ´Ù
¹®ÀÚ¿¬»êÀÚ  eq  ne  not  or  add          //  eq(==) ne(!=) not(!) or(||) add(+ ¹®ÀÚ¿­ÀÇ ¿¬°á)
( )                                       //  ¿¬»êÀÇ ¼ø¼­¸¦ Á¤ÇÑ´Ù
[ ]                                       //  ¹è¿­À» ÁöÁ¤ÇÑ´Ù
" "                                       //  ¹®ÀÚ¸¦ ÁöÁ¤ÇÑ´Ù
a=1+2;  trace(a);                         //  ¿¬»ê °á°ú Ãâ·Â.  °á°ú´Â 3
aaa=1;  set("ccc", aaa );  trace(ccc);    //  º¯¼ö¿¡ °ªÀ» ÁöÁ¤.  °á°ú´Â 1
aaa=1;  set("ccc", "aaa");  trace(ccc);   //  º¯¼ö¿¡ °ªÀ» ÁöÁ¤.  °á°ú´Â aaa
set("ooo", getProperty ("ppp", _x ));     //  ppp x ÁÂÇ¥¸¦  ooo ¿¡ ÁöÁ¤.
----------------------------------------------------------------------------
for (a=1; a<=10; a++)  { trace("a="+a); };             //  for  ¹Ýº¹¹®
for (i=1; i<=120;  i+=12) { continue; };               //  for step ¹Ýº¹¹®
while(true) {  if(a == 0) { break; }; };               //  while  ¹Ýº¹¹®
do { if(a == 0) { break; }; };  while(true);           //  do ¹Ýº¹¹®
if((n == 0) || (n >= 5)  &&  (n <= 55)  !(n=15)) {     //  if Á¶°Ç¹®
¡¡gotoAndPlay(1);
} else if (n == 2) {
¡¡gotoAndPlay(2);
} else {
¡¡gotoAndPlay(3);
};
num_ch = 3;                                             //  switch Á¶°Ç¹®
switch (num_ch) {                                               
      case 1:    trace ( " case 1 tested true " );  break;
      case 2:    trace ( " case 2 tested true " );  break;
      default:    trace ( " no case tested true " );
};
----------------------------------------------------------------------------
function sumnumber(a,b,c) {  return(aaa= a+b+c); };    // ÇÔ¼ö
sumnumber(1,2,3);
trace(aaa);
----------------------------------------------------------------------------
Math.abs(-1)              //  Àý´ë°ª.   °á°ú´Â 1
Math.sin(1)               //  sin °ª.   °á°ú´Â 0.841470984807897
Math.cos(1)               //  cos °ª.   °á°ú´Â 0.54030230586814
Math.tan(1)               //  tan °ª.   °á°ú´Â 1.5574077246549
Math.log(2)               //  log °ª.   °á°ú´Â 0.693147180559945
Math.exp(1)               //  Áö¼ö °ª.    °á°ú´Â 2.71828182845905
Math.sqrt(9)              //  Á¦°ö±Ù °ª.    °á°ú´Â 3
Math.pow(2 , 4)           //  °ÅµìÁ¦°ö °ª.    °á°ú´Â 16
Math.ceil(1.1)            //  °¡±î¿î Á¤¼ö·Î ¿Ã¸² °ª.    °á°ú´Â 2
Math.ceil(1.5)            //  °¡±î¿î Á¤¼ö·Î ¿Ã¸² °ª.    °á°ú´Â 2
Math.floor(1.2)           //  °¡±î¿î Á¤¼ö·Î ³»¸² °ª.    °á°ú´Â 1
Math.floor(1.7)           //  °¡±î¿î Á¤¼ö·Î ³»¸² °ª.    °á°ú´Â 1
Math.round(1.2)           //  °¡±î¿î Á¤¼ö·Î ¹Ý¿Ã¸² °ª.    °á°ú´Â 1
Math.round(1.5)           //  °¡±î¿î Á¤¼ö·Î ¹Ý¿Ã¸² °ª.    °á°ú´Â 2
Math.max(1 , 2)           //  µÎ Á¤¼ö Áß Å« Á¤¼ö°ª.    °á°ú´Â 2
Math.min(1 , 2)           //  µÎ Á¤¼ö Áß ÀÛÀº Á¤¼ö°ª.    °á°ú´Â 1
int(1.12 );               //  ¼öÄ¡¸¦ Á¤¼öÈ­.   °á°ú´Â 1    
int(1.82 );               //  ¼öÄ¡¸¦ Á¤¼öÈ­.   °á°ú´Â 1    
parseInt("3.2");          //  ¹®ÀÚ¿­À» Á¤¼öÈ­.  °á°ú´Â 3    
parseInt("3.7");          //  ¹®ÀÚ¿­À» Á¤¼öÈ­.  °á°ú´Â 3    
parseInt("5abc");         //  ¹®ÀÚ¿­À» Á¤¼öÈ­.  °á°ú´Â 5
parseInt("abc5");         //  ¹®ÀÚ¿­À» Á¤¼öÈ­.  °á°ú´Â NaN    
parseInt("3E8", 16);      //  16 Áø¼ö·Î º¯È¯.   °á°ú´Â 1000
parseInt("777", 8);       //  8 Áø¼ö·Î º¯È¯.   °á°ú´Â 511
parseInt("1010", 2);      //  2 Áø¼ö·Î º¯È¯.   °á°ú´Â 10
parseFloat("2")           // ¹®ÀÚ¿­À» ºÎµ¿Á¡ ¼ýÀÚ·Î º¯È¯.  °á°ú´Â 2
parseFloat("2.4")         // ¹®ÀÚ¿­À» ºÎµ¿Á¡ ¼ýÀÚ·Î º¯È¯.  °á°ú´Â 2.4
parseFloat("2.6abc")      // ¹®ÀÚ¿­À» ºÎµ¿Á¡ ¼ýÀÚ·Î º¯È¯.  °á°ú´Â 2.6
Number("11")              //  ¹®ÀÚ¿­À» ¼ýÀÚ·Î º¯È¯.   °á°ú´Â 11
Number("12.34")           //  ¹®ÀÚ¿­À» ¼ýÀÚ·Î º¯È¯.   °á°ú´Â 12.34
Number("12.34abc")        //  ¹®ÀÚ¿­À» ¼ýÀÚ·Î º¯È¯.   °á°ú´Â NaN
sss = 123;  uuu = sss.toString();      // ¼ýÀÚ¸¦ ¹®Àڷκ¯È¯.  °á°ú´Â 123
ord("abc");                            //  ASCII °ª.   °á°ú´Â 97
s = "abc";   sss = s.charCodeAt(0);    //  1¹ø° ASCII °ª .   °á°ú´Â 97
s = "abc";   sss = s.charCodeAt(1);    //  2¹ø° ASCII °ª.    °á°ú´Â 98
chr(65);                               //  ASCII Äڵ带 ¹®ÀÚÈ­.  °á°ú´Â A
String.fromCharCode(64,65,66);         //  ASCII Äڵ带 ¹®ÀÚÈ­.  °á°ú´Â @AB
Math.random();                         // ³­¼ö ¹ß»ý.  °á°ú´Â 0 - 1 »çÀÌÀÇ ¼Ò¼ýÁ¡ Æ÷ÇÔÇÑ °ª
random(5);                             // ³­¼ö ¹ß»ý.  °á°ú´Â 0,1,2,3,4 Áß Çϳª
----------------------------------------------------------------------------
// delete º¯¼ö ¶Ç´Â °´Ã¼ ;             // º¯¼ö¸¦ »èÁ¦  (var ·Î ¼±¾ðµÈ º¯¼ö´Â »èÁ¦ÇÒ ¼ö ¾ø´Ù)
account = 1;   trace (account) ;                      // °á°ú´Â 1 
account = 1;   delete account;    trace (account);    // °á°ú´Â undefined
delete onEnterFrame;                                  // ¹Ýº¹ ½ÇÇà ÁßÁö
----------------------------------------------------------------------------
typeof( );            // String, Number, MovieClip, Object, Boolean, Function ¿©ºÎ¸¦ ÁöÁ¤
trace (typeof(1));    // °á°ú´Â Number
trace (typeof("1"));  // °á°ú´Â String
trace (typeof(aaa));  // aaa°¡ ¹«ºñŬ¸³ À̶ó¸é  °á°ú´Â MovieClip
----------------------------------------------------------------------------
isFinite( );            // ¼ýÀÚ°¡ À¯ÇѼöÀ̸é true ¹«ÇѼö°Å³ª À½ÀÇ ¹«ÇÑ´ëÀ̸é false
trace (isFinite(aaa));  // aaa °ªÀÌ NaN À̶ó¸é °á°ú´Â false
----------------------------------------------------------------------------
Mouse.show();           // ¸¶¿ì½º º¸ÀÓ
Mouse.hide();           // ¸¶¿ì½º °¨Ãã
myClip.onMouseDown = function () {trace (" depth ¹«½Ã"); };     // ¸¶¿ì½º ´©¸¦ ¶§
myClip.onMouseUp = function () {trace ("depth ¹«½Ã"); };        // ¸¶¿ì½º ´­·¶´Ù ³õÀ» ¶§
myClip.onMouseMove = function () { trace ("depth ¹«½Ã"); };     // ¸¶¿ì½º À̵¿ÇÒ ¶§
myClip.onPress = function () { trace ("depth Àû¿ë"); };         // ¸¶¿ì½º ´©¸¦ ¶§
myClip.onRelease = function () { trace ("depth Àû¿ë "); };      // ¸¶¿ì½º ´­·¶´Ù ³õÀ» ¶§
myClip.onReleaseOutside = function () { trace ("Outside"); };   // ¸¶¿ì½º ³ª°¡¼­ ³õÀ» ¶§
myClip.onRollOver = function () { trace ("Over called"); };     // ¸¶¿ì½º ¿À¹ö ¶§
myClip.onRollOut = function () { trace ("Out called"); };       // ¸¶¿ì½º ¾Æ¿ô ¶§
----------------------------------------------------------------------------
// ´ÜÃß¹«ºñŬ¸³ Ŭ¸¯ÈÄ ¾×¼Ç ½ºÅ©¸³Æ®¸¦ ³Ö´Â´Ù
on (press){           }  // ¸¶¿ì½º ¹öÆ°À» ´©¸¦ ¶§   };  x  }  o
on (release){         }  // ¸¶¿ì½º ¹öÆ°À» ´­·¶´Ù ¶¿ ¶§
on (releaseOutside){  }  // ¸¶¿ì½º ¹öÆ°À» ´©¸£°í ³ª°¡¼­ ¶¿ ¶§
on (rollOver){        }  // ¸¶¿ì½º Æ÷ÀÎÆ®°¡ À§·Î ¿Ã¶ó¿Ã ¶§
on (rollOut){         }  // ¸¶¿ì½º Æ÷ÀÎÆ®°¡ ¹ÛÀ¸·Î ³ª°¥ ¶§
on (dragOver){        }  // ´©¸¥ ä·Î ¹ÛÀ¸·Î ³ª°¬´Ù°¡ ´Ù½Ã µé¾î¿Ã ¶§
on (dragOut){         }  // ¸¶¿ì½º¹öÆ°À» ´©¸£°í ¹Ù±ùÀ¸·Î µå·¡±×ÇÒ ¶§
on (keyPress){        }  // ÁöÁ¤ÇÑ Å°¸¦ ´©¸¦ ¶§
----------------------------------------------------------------------------
// ¹«ºñŬ¸³ Ŭ¸¯ÈÄ ¾×¼Ç ½ºÅ©¸³Æ®¸¦ ³Ö´Â´Ù
onClipEvent (load) {            }  // ½ÃÀÛ µÉ¶§  };  x  }  o  
onClipEvent (unload) {          }  // Á¦°Å µÉ¶§
onClipEvent (enterFrame) {      }  // Æ®¸®°Å µÉ¶§
onClipEvent (mouseMove) {       }  // ¸¶¿ì½º°¡ À̵¿ÇÒ ¶§
onClipEvent (mouseDown) {       }  // ¸¶¿ì½º Ŭ¸¯ ½Ã
onClipEvent (mouseUp) {         }  // ¸¶¿ì½º Ŭ¸¯ ÈÄ
onClipEvent (keyDown) {         }  // Å°¸¦ ´©¸¦ ¶§
onClipEvent (keyUp) {           }  // Å°¸¦ ´­·¶´Ù ³õÀ» ¶§
onClipEvent (data) {            }  // loadVariables ¶Ç´Â loadMovie ¾×¼Ç¿¡¼­ µ¥ÀÌÅÍ°¡ ¼ö½ÅµÉ ¶§
----------------------------------------------------------------------------
TextField.onChanged = function () { trace ("onChanged called"); };
// ÅؽºÆ® ÇʵåÀÇ ³»¿ëÀÌ º¯°æµÉ ¶§
TextField.onSetFocus = function () { trace ("onSetFocus called"); };
// ÅؽºÆ® ÇʵåÀÇ ³»¿ë ºÎºÐ¿¡ ¸¶¿ì½º°¡ Ŭ¸¯ µÉ ¶§
TextField.onKillFocus = function () { trace ("onKillFocus called"); };
// ÅؽºÆ® ÇʵåÀÇ ³»¿ë ¹Ù±ù ºÎºÐ¿¡ ¸¶¿ì½º°¡ Ŭ¸¯ µÉ ¶§
TextField.onScroller = function () { trace ("onScroller called"); };
// ÅؽºÆ® ÇʵåÀÇ ³»¿ëÀÌ ½ºÅ©·Ñ µÉ ¶§
----------------------------------------------------------------------------
myMovieClip.onData = function () { trace ("onData called"); }; 
// ¹«ºñ Ŭ¸³ÀÌ loadVariables ¶Ç´Â loadMovie È£Ãâ·ÎºÎÅÍ µ¥ÀÌÅ͸¦ ¹ÞÀ» ¶§
myMovieClip.onLoad =  function () { trace ("onLoad called"); }; 
// ¹«ºñ Ŭ¸³ÀÌ load È£Ãâ·ÎºÎÅÍ µ¥ÀÌÅ͸¦ ¹ÞÀ» ¶§
myMovieClip.onUnLoad =  function () { trace ("onUnLoad called"); }; 
// ¹«ºñ Ŭ¸³ÀÌ Unload ¶§
myMovieClip.stop()  
// ÀÛ¾÷ ÁßÁö
----------------------------------------------------------------------------
myDate = new Date();                               // ³¯Â¥ ·Îµå
myDate = new Date (³â,¿ù,ÀÏ,½Ã,ºÐ,ÃÊ);             // ³¯Â¥ ÁöÁ¤
yyyy = (myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate());
tttt = (myDate.getHours()+ " :" + myDate.getMinutes() + " :" +myDate.getSeconds());
----------------------------------------------------------------------------
_root.onEnterFrame = function() {   };             // ¸ÞÀÎÈ­¸é¿¡¼­ ÇÁ·¹ÀÓ ¹Ýº¹
onEnterFrame = function() {   };                   // ½Éº¼È­¸é¿¡¼­ ÇÁ·¹ÀÓ ¹Ýº¹
----------------------------------------------------------------------------
tmtm = getTimer();          
onEnterFrame = function() {
  if ( (getTimer()-tmtm) >= 500 ) { tmtm=getTimer(); trace (tmtm); };   // 0.5ÃÊÈÄ ¹Ýº¹½ÇÇà
  if ( (getTimer()-tmtm) >= 1000 ) { tmtm=getTimer(); trace (tmtm); };  // 1ÃÊÈÄ ¹Ýº¹½ÇÇà
  if ( (getTimer()-tmtm) >= 2000 ) { tmtm=getTimer(); trace (tmtm); };  // 2ÃÊÈÄ ¹Ýº¹½ÇÇà
};
----------------------------------------------------------------------------
onEnterFrame = function() {                                
   nr += 1;  if (nr > 5 )  {  delete  onEnterFrame;  };           // 5¹ø ¹Ýº¹½ÇÇàÈÄ ÁßÁö
   trace (nr);
};
----------------------------------------------------------------------------
createTextField ("ins", 1, 100, 100, 50, 50)
ins.border = true;
function callback() {
   ins._x += 5;
   if ( ins._x > 400 ) { clearInterval( intervalID );  };      // ÁßÁö (clearInterval)
}
var intervalID;
intervalID = setInterval( callback, 100 );             //  0.1ÃÊÈÄ ¹Ýº¹½ÇÇà (setInterval)
----------------------------------------------------------------------------
#include "script.as"         // script.as ÆÄÀÏ ³Ö±â (¾×¼Ç ½ºÅ©¸³Æ® txt ÆÄÀÏ)
----------------------------------------------------------------------------
System.useCodepage = true;   // ÇÑ±Û ±úÁü ¹æÁö
trace(System.capabilities.language)          // Flash Player°¡ Áö¿øÇÏ´Â ¾ð¾î. °á°ú´Â ko
trace(System.capabilities.hasVideoEncoder)   // Áö¿øµÇ´Â ºñµð¿À ÀÎÄÚ´õ. °á°ú´Â true, false.
trace(System.capabilities.hasAudioEncoder )  // Áö¿øµÇ´Â ¿Àµð¿À ÀÎÄÚ´õ. °á°ú´Â true, false.
trace(System.capabilities.hasAudio)          // ¿Àµð¿À ¼º´ÉÀÌ ÀÖ´ÂÁö ¿©ºÎ. °á°ú´Â true, false.
trace(System.capabilities.hasMP3)            // MP3 µðÄÚ´õ°¡ ÀÖ´ÂÁö ¿©ºÎ. °á°ú´Â true, false.
----------------------------------------------------------------------------
escape("abc°¡³ª´Ù");         // URL¿¡ »ç¿ëÇϱâ À§ÇØ ÀÎÄÚµù.
// System.useCodePage= true; À϶§ °á°ú´Â abc%B0%A1%B3%AA%B4%D9
// System.useCodePage= false; À϶§ °á°ú´Â abc%EA%B0%80%EB%82%98%EB%8B%A4
----------------------------------------------------------------------------
trace(targetPath(this));     // ´ë»ó Æнº¸¦ ¹Ýȯ.  °á°ú´Â _level0.instance1 ·Î Ç¥½Ã
trace(this.valueOf());       // °á°ú´Â _level0 ·Î Ç¥½Ã
----------------------------------------------------------------------------
trace(this.getBytesLoaded());  // ¹«ºñŬ¸³ÀÇ ·ÎµåµÈ ¹ÙÀÌÆ® ¼ö¸¦ ¾Ë·ÁÁØ´Ù.
trace(this.getBytesTotal());   // ¹«ºñŬ¸³ÀÇ Àüü¿ë·® ¹ÙÀÌÆ® ¼ö¸¦ ¾Ë·ÁÁØ´Ù.
----------------------------------------------------------------------------
getURL("C:/")                                          // Ž»ö±â ¿­±â
getURL("C:/Windows/NOTEPAD.EXE");   };                 // ¸Þ¸ðÀå ¿­±â
getURL("C:/Program Files/Accessories/WORDPAD.EXE");    // ¿öµåÆÐµå ¿­±â
getURL("C:/Program Files/Accessories/MSPAINT.EXE");    // ±×¸²ÆÇ ¿­±â
getURL("C:/Windows/CALC.EXE");                         // °è»ê±â ¿­±â
getURL ("aaa.exe");                                    // aaa.exe ÆÄÀÏ ¿­±â (message)
getURL ("aaa.txt", "_self");                           // aaa.txt ÆÄÀÏ ¿­±â
getURL ("movie.html", "_self");                        // movie.html ÆÄÀÏ ¿­±â
getURL ("http://www", "_blank");                       // http://www ¸¦ »õ·Î¿î âÀ¸·Î ¿­±â
----------------------------------------------------------------------------
Stage.showMenu = "true";        // ½ºÅ©¸° ¸Þ´º º¸ÀÓ
Stage.showMenu = "false";       // ½ºÅ©¸° ¸Þ´º °¨Ãã 
Stage.scaleMode = "noScale";    // È­¸éÀÇ »çÀÌÁ °íÁ¤
Stage.align = "TL";             // È­¸éÀÇ Á¤·ÄÀ» T(À§) L(¿ÞÂÊ)
           //  "T" À§ °¡¿îµ¥    "B" ¾Æ·¡ °¡¿îµ¥    "L" °¡¿îµ¥ ¿ÞÂÊ    "R" °¡¿îµ¥ ¿À¸¥ÂÊ
           //  "TL" À§ÂÊ ¿ÞÂÊ   "TR" À§ÂÊ ¿À¸¥ÂÊ   "BL" ¾Æ·¡ÂÊ ¿ÞÂÊ   "BR" ¾Æ·¡ÂÊ ¿À¸¥ÂÊ
Stage.height      // Çȼ¿·Î Ç¥½ÃµÈ ½ºÅ×ÀÌÁöÀÇ ³ôÀÌ
Stage.width       // Çȼ¿·Î Ç¥½ÃµÈ ½ºÅ×ÀÌÁöÀÇ ³ÐÀÌ
----------------------------------------------------------------------------
_root.createEmptyMovieClip("box",1);      // ½ºÅ×ÀÌÁö Å׵θ® ÁÖ±â
with (_root.box) {  moveto(1, 1);   linestyle(10, 0x00cc00, 100);
    lineto(stage.width, 1);     lineto(stage.width, stage.height);
    lineto(1, stage.height);    lineto(1, 1);   };
----------------------------------------------------------------------------
fscommand("showmenu", true);      // ½ºÅ©¸° ¸Þ´º º¸ÀÓ
fscommand("showmenu", false);     // ½ºÅ©¸° ¸Þ´º °¨Ãã
fscommand("allowscale", true);    // ½ºÅ©¸° Å©±â¿¡ µû¶ó ¹«ºñÀÇ Å©±âµµ º¯ÇÔ
fscommand("allowscale", false);   // ½ºÅ©¸° Å©±â¿¡ µû¶ó ¹«ºñÀÇ Å©±âµµ ¾Èº¯ÇÔ
fscommand("fullscreen", true);    // Ç® ½ºÅ©¸° (escÅ° ´©¸£¸é ÇØÁ¦)
fscommand("fullscreen", false);   // Ç® ½ºÅ©¸°À» ¿ø·¡ÀÇ Å©±â·Î ¸¸µç´Ù
fscommand("trapallkeys", true);   // Å°º¸µå Å° »ç¿ëÇÒ ¼ö ¾øÀ½ (Ç® ½ºÅ©¸° À϶§ escÅ° ¸ÔÅë)
fscommand("trapallkeys", false);  // Å°º¸µå Å° »ç¿ëÇÒ ¼ö ÀÖÀ½
fscommand("quit");                // ½ºÅ©¸° ´Ý±â
fscommand ("exec", "a.exe");      // a.exe ÆÄÀÏ ½ÇÇà (no message)
   Ç÷¡½Ã ¹«ºñ(exe) °¡ À§Ä¡ÇÏ´Â Æú´õ¾È¿¡ fscommand ¶ó´Â ÇÏÀ§ Æú´õ¸¦ ¸¸µé°í
   fscommand µð·ºÅ丮¿¡  a.exe °¡ ÀÖÀ»¶§ Ç÷¡½Ã ¹«ºñ(exe)¸¦ ½ÇÇàÇϸé a.exeÆÄÀÏ ½ÇÇà
----------------------------------------------------------------------------
// getURL ·Î javascript »ç¿ëÇϱâ
var hello = "Hello, World";
getURL("javascript:alert(\" "+ hello + "  \")");   // ¸Þ¼¼Áö ¶ç¿ì±â
getURL("javascript:window.self.close()");          // À©µµ¿ì⠴ݱâ
getURL("javascript:window.external.AddFavorite('http://','°¡')" );    //Áñ°Üã±â Ãß°¡
----------------------------------------------------------------------------
// fscommand ·Î javascript »ç¿ëÇϱâ
1.  fscommand ("messagebox", "This is a Flash.");   // aaa.swf flash script
2.  ÆÄÀϸ޴º - Á¦ÀÛ¼³Á¤ - Æ÷¸Ë (HTMLüũ) - HTML (ÅÛÇø´: with FSCommand üũ)
3.  ÆÄÀϸ޴º - Á¦ÀÛ (ÆÄÀϸíÀº aaa.swf) -  aaa.html ÆÄÀÏÀÌ µð·ºÅ丮¿¡ ¸¸µé¾î Áø´Ù
4.  aaa.html ÆÄÀÏÀ» ¿­°í  function aaa_DoFSCommand(command, args) {  ¾Æ·¡¿¡
      if (command == "messagebox") {  alert(args);  };   À» Àû°í ÀúÀå ÇÑ´Ù
5.  aaa.html ½ÇÇà (½ÇÇàÈÄ Á¦ÀÛ¼³Á¤ ÇØÁ¦)
----------------------------------------------------------------------------
// fscommand ·Î javascript ÀÇ º¯¼ö°ª ºÒ·¯¿À±â
1. fscommand ("search", TextFieldvar);     // aaa.swf flash script
2. if (command == "search") {              // aaa.html script
       EEEfind = "FFFFFFFF";
       window.document.aaa.SetVariable("TextFieldvar", EEEfind) ;
       return TextFieldvar;
    };
3. aaa.html ½ÇÇà
----------------------------------------------------------------------------
_root.loadMovie("a.swf");            // swf ÆÄÀÏ ºÒ·¯¿À±â
_root.bbb.loadMovie("a.swf")         // swf ¸¦ ¸ÞÀο¡ ÀÖ´Â bbb¹«ºñŬ¸³ÀνºÅϽº¿¡ ºÒ·¯¿À±â
_root.loadMovie("a.swf", 1);         // swf ¸¦ ·¹º§1·Î ºÒ·¯¿À±â (2 ´Â 1¸¦  screen over)
_root.loadMovie("aaa.jpg");          // jpg ÆÄÀÏ ºÒ·¯¿À±â
_root.bbb.loadMovie("aaa.jpg");      // jpg ÆÄÀÏÀ» ¸ÞÀο¡ ÀÖ´Â bbb¹«ºñŬ¸³ÀνºÅϽº¿¡ ºÒ·¯¿À±â
unloadMovie (1);                     // ·¹º§ 1¿¡ ·ÎµåµÈ ¹«ºñ¸¦ ¾ð·Îµå
unloadMovie ("a.swf");               // ÇöÀç ¹«ºñ¿¡ ·ÎµåµÈ a.swf ¹«ºñ¸¦ ¾ð·Îµå
_root.bbb.unloadMovie();             // ¸ÞÀΠŸÀÓ¶óÀÎÀÇ bbb ¹«ºñŬ¸³¿¡ ·ÎµåµÈ ¹«ºñ¸¦ ¾ð·Îµå
this["bbb"].unloadMovie();           // ÇöÀç ŸÀÓ¶óÀÎÀÇ bbb ¹«ºñŬ¸³¿¡ ·ÎµåµÈ ¹«ºñ¸¦ ¾ð·Îµå
sss.bbb.unloadMovie();               // sss ½Éº¼ ŸÀÓ¶óÀÎÀÇ bbb ¹«ºñŬ¸³¿¡ ·ÎµåµÈ ¹«ºñ¸¦ ¾ð·Îµå
----------------------------------------------------------------------------
button.onPress = function() { _root.loadMovie("aaa.swf"); }     // aaa.swf ½ÇÇàÁß ÃʱâÈ­ Çϱâ
----------------------------------------------------------------------------
_root["ball_"+counter]._x = 11;       //  ¸ÞÀÎ È­¸éÀÇ Å¬¸³ ÁÂÇ¥
this["ball_"+counter]._x = 11;        //  ÇöÀç È­¸éÀÇ Å¬¸³ ÁÂÇ¥
aaa["ball_"+counter]._x = 11;         //  aaa ½Éº¼ È­¸éÀÇ Å¬¸³ ÁÂÇ¥
----------------------------------------------------------------------------
this.createEmptyMovieClip("aaa", 1);             //  ¹«ºñŬ¸³ »ý¼º (2 ´Â 1¸¦ screen over)
this.duplicateMovieClip (aaa, bbb, 1);           //  aaa ¹«ºñŬ¸³  bbb ·Î º¹»ç
this.bbb.removeMovieClip();                      //  bbb ¹«ºñŬ¸³ »èÁ¦
myClip._visible = true;                          //  Ŭ¸³ º¸ÀÓ
myClip._visible = false;                         //  Ŭ¸³ °¨Ãã
myClip.swapDepths(100);                          //  Ŭ¸³ ±íÀÌ 100 À¸·Î ÁöÁ¤ (2 ´Â 1¸¦ screen over)
myClip.swapDepths(otherClip);                    //  Ŭ¸³ ±íÀÌ otherClip °ú ¹Ù²Þ
for (i=1; i<=360; i++)  {                        //  Ŭ¸³ º¹»ç
     duplicateMovieClip (ins1, "mc"+i, i);
     setProperty ("mc"+i, _x, random(300));
     setProperty ("mc"+i, _y, random(300));
     setProperty ("mc"+i, _alpha, random(300));
     setProperty ("mc"+i, _xscale, 150);
     setProperty ("mc"+i, _yscale, 150);
};  
for (i=1; i<=360; i++)  {                        //  Ŭ¸³ º¹»ç
     duplicateMovieClip (ins1, "mc"+i, i);
     this["mc" + i]._x = i;
     this["mc" + i]._y = i;
};  
for (i=1; i<=50; i++)  {                          // Ŭ¸³ À̵¿
      this["mc_"+i]._x += 10;
      this["mc_"+i]._y += 10;
}; 
for (i=1; i<=360; i++)  {                         // Ŭ¸³ »èÁ¦
     this["mc" + i].removeMovieClip ();
}; 
----------------------------------------------------------------------------
setProperty ("mv", _x, 150);           // mv ¹«ºñŬ¸³ xÁÂÇ¥ ¼Ó¼º º¯°æ
myMovieX = getProperty( mv, _x);       // mv ¹«ºñŬ¸³ xÁÂÇ¥ ¼Ó¼º Àбâ
trace(myMovieX);
----------------------------------------------------------------------------
_alpha              ¾ËÆÄ°ª(%)
_currentframe       ÇöÀçÀç»ýÁßÀÎ ÇÁ·¹ÀÓ(#)
_droptarget         µå·¡±× ¾Øµåµå·Ó ÇÒ¶§ ³õ´Â Ÿ±êÀ§Ä¡(name)
_framesloaded       ·ÎµåµÈ ÇÁ·¹ÀÓ¼ö(#)
_height             ³ôÀÌ(#)
_name               ÀνºÅϽº(string)
_rotation           ȸÀü°ª(#)
_soundbuftime       »ç¿îµå¹öÆÛ¸µ ½Ã°£(±âº»°ª 5ÃÊ:#)
_totalframes        ÃÑÇÁ·¹ÀÓ¼ö(#)
_url                ´Ù¿î·ÎµåÇÑ URL(string)
_visible            º¸ÀδÙ,¾Èº¸Àδ٠(true,false)
_width              °¡·Î±æÀÌ(#)
_x                  xÁÂÇ¥(#)
_y                  yÁÂÇ¥(#)
_xmouse             ¸¶¿ì½ºxÁÂÇ¥(#)
_ymouse             ¸¶¿ì½ºyÁÂÇ¥(#)
_xscale             x¹èÀ²(%)
_yscale             y¹èÀ²(%)
----------------------------------------------------------------------------
_root.a.play;                    //  ¸ÞÀο¡ ÀÖ´Â a¹«ºñŬ¸³  ÇÁ·¹ÀÓ Àç»ý
_root.a.stop;                    //  ¸ÞÀο¡ ÀÖ´Â a¹«ºñŬ¸³  ÇÁ·¹ÀÓ ÁßÁö
play();                          //  stopÀ¸·Î Á¤ÁöµÈ ÇöÀçŸÀÓ¶óÀÎÀÇ ÇÁ·¹ÀÓ Àç»ý
stop();                          //  ÇöÀçŸÀÓ¶óÀÎÀÇ ÇÁ·¹ÀÓ ÁßÁö
gotoAndPlay(1);                  //  ÇöÀç SceneÀÇ 1ÇÁ·¹ÀÓ Àç»ý
gotoAndPlay("a");                //  ÇöÀç SceneÀÇ Label¸í a Àç»ý
gotoAndPlay("Scene 2", "c");     //  Scene 2ÀÇ Label¸í c Àç»ý
a.gotoAndPlay(1);                //  a¹«ºñŬ¸³ÀÇ 1ÇÁ·¹ÀÓ Àç»ý
gotoAndStop(1);                  //  ÇöÀç SceneÀÇ 1ÇÁ·¹ÀÓ ÁßÁö
nextScene();                     //  ´ÙÀ½ Àå¸éÀÇ ÇÁ·¹ÀÓ 1·Î º¸³»°í ÁßÁö
prevSecne();                     //  ÀÌÀü Àå¸éÀÇ ÇÁ·¹ÀÓ 1·Î º¸³»°í ÁßÁö
nextFrame();                     //  ´ÙÀ½ ÇÁ·¹ÀÓÀ¸·Î º¸³»°í ÁßÁö
prevFrame();                     //  ÀÌÀü ÇÁ·¹ÀÓÀ¸·Î º¸³»°í ÁßÁö
toggleHighQuality ();            //  ÀúÇØ»óµµ¿Í °íÇØ»óµµ °£À»  Àüȯ
updateAfterEvent();              //  È­¸éÀ» °»½Å (onClipEvent Çڵ鷯 ³»¿¡¼­¸¸ »ç¿ë)
                                  //  (onMouseDown,  onMouseUp,  onMouseMove)
----------------------------------------------------------------------------
tellTarget ("../a") { nextFrame(); } //  ../a ¹«ºñŬ¸³À» È£ÃâÈÄ ´ÙÀ½ ÇÁ·¹ÀÓ Àç»ý
if (_framesloaded = 10) {  }         // ¸¸¾à ¹«ºñÀÇ 10ÇÁ·¹ÀÓÀÌ ·ÎµåµÇ¸é
----------------------------------------------------------------------------
// with ¹®
for (i=0; i<1000; i++) {
    with (aaa[i]) {
       _x = Math.floor(Math.random() * 500);
       _y = random(500);
       _rotation = random(360);
   }
}
// tellTarget ¹® (¼Óµµºü¸§)
for (i=0; i<1000; i++) {
    tellTarget (aaa[i]) {
       _x = Math.floor(Math.random() * 500);
       _y = random(500);
       _rotation = random(360);
    }
}
----------------------------------------------------------------------------
aaa = new Array();              // ¹è¿­ ÃʱâÈ­   
aaa = new Array("1","2","3");   // ¹è¿­°ª ³Ö±â
bbb = ["Sun","Mon","Tue"];      // ¹è¿­°ª ³Ö±â
aaa[1] = "abc";                 // ¹è¿­°ª º¯È¯  ( "2" °¡ "abc" ·Î º¯È¯)
aaa[0] = "Jan" ;  aaa[1] = "Feb" ;  aaa[2] = "Mar" ;         // ¹è¿­°ª º¯È¯
aaa[3] = "Apr"                  // ¹è¿­ Ãß°¡ (aaa °ªÀº  "Jan,Feb,Mar,Apr" )
ccc = aaa.concat(bbb);          // ¹è¿­ ÇÕħ (ccc °ªÀº  "Jan,Feb,Mar,Apr,Sun,Mon,Tue" )
ddd = ccc.join("/");            // ,¸¦  /·Î º¯È¯  (ddd °ªÀº  "Jan/Feb/Mar/Apr/Sun/Mon/Tue" )
ddd = ccc.length;               // ¹è¿­°ª °¹¼ö (ddd °ªÀº  7 )
ddd = ccc.slice(2,4);           // ¹è¿­°ª Àбâ (ddd °ªÀº  "Mar,Apr" )
eee = ccc.push("z","zz");       // ¹è¿­Ãß°¡ÈÄ  ¹è¿­°ª °¹¼ö (eee °ªÀº  9 )
                                 //  (ccc °ªÀº "Jan,Feb,Mar,Apr,Sun,Mon,Tue,z,zz"   ·Î º¯ÇÔ)
eee = ccc.pop();                // ¸¶Áö¸· ¹è¿­ ºÐ¸®ÈÄ °ª  (eee °ªÀº  "zz" )
                                 //  (ccc °ªÀº  "Jan,Feb,Mar,Apr,Sun,Mon,Tue,z"   ·Î º¯ÇÔ)
eee = ccc.shift();              // ù¹ø° ¹è¿­ ºÐ¸®ÈÄ °ª (eee °ªÀº  "Jan" )
                                 //  (ccc °ªÀº  "Feb,Mar,Apr,Sun,Mon,Tue,z"   ·Î º¯ÇÔ)
eee = ccc.reverse();            // ¹è¿­°ª ¼ø¼­¹Ù²Þ (eee °ªÀº  "z,Tue,Mon,Sun,Apr,Mar,Feb" )
                                 //  (ccc °ªµµ  "z,Tue,Mon,Sun,Apr,Mar,Feb"   ·Î º¯ÇÔ)
eee = ccc.splice(2,5,"x","xx","xxx");  // ¹è¿­°ª ÀбâÈÄ  º¯È¯  (eee °ªÀº  "Mon,Sun,Apr,Mar,Feb" )
                                        //  (ccc °ªÀº  "z,Tue,x,xx,xxx"   ·Î º¯ÇÔ)
eee = ccc.unshift("1","2");     // ù¹ø° ¹è¿­Ãß°¡ÈÄ  °ª  (eee °ªÀº  "7" )
                                 //  (ccc °ªÀº  "1,2,z,Tue,x,xx,xxx"   ·Î º¯ÇÔ)
sss = new Array(1,2,3);         // ¼ýÀÚ ¹è¿­°ª ³Ö±â
uuu = sss.toString();           // ¹®Àڷκ¯È¯.  °á°ú´Â 1,2,3
vvv = uuu.toLowerCase();        // ´ë¹®ÀÚ¸¦  ¼Ò¹®ÀÚ·Î º¯È¯.  ¿ø·¡ °ªÀº º¯°æµÇÁö ¾ÊÀ½     
vvv = uuu.toUpperCase();        // ¼Ò¹®ÀÚ¸¦  ´ë¹®ÀÚ·Î º¯È¯.  ¿ø·¡ °ªÀº º¯°æµÇÁö ¾ÊÀ½ 
xxx = Number("111")             //  ¼ýÀÚ·Î º¯È¯.   °á°ú´Â 111
xxx = Number("aaa")             //  ¼ýÀÚ·Î º¯È¯.   °á°ú´Â NaN
xxx = Number(true)              //  ¼ýÀÚ·Î º¯È¯.   °á°ú´Â 1
xxx = Number(false)             //  ¼ýÀÚ·Î º¯È¯.   °á°ú´Â 0
----------------------------------------------------------------------------
cliparray = new Array();                     // ¹«ºñŬ¸³À» ¹è¿­·Î ÀúÀåÇϱâ
for (a=1; a<=3; a++)  {
     cliparray[a] =  _root["clip"+a];
     cliparray[a].x =  _root["clip"+a]._x;
     cliparray[a].y =  _root["clip"+a]._y;
     trace(cliparray[a].x);
     trace(cliparray[a].y);
}
----------------------------------------------------------------------------
myString = new String();                           // ¹®ÀÚ º¯¼öÃʱâÈ­   
myString = new String("°¡³ª´Ù");                   // ¹®ÀÚ ³Ö±â
tet="°¡³ª´Ù";   myString = new String(tet);        // tet  º¯¼ö ³Ö±â
text0=myString.charAt(0);                          // text0 °ªÀº "°¡"  -  1°³ Àбâ
text1=myString.charAt(1);                          // text1 °ªÀº "³ª"  -  1°³ Àбâ
text2=myString.charAt(2);                          // text2 °ªÀº "´Ù"  -  1°³ Àбâ
text3=myString.concat("¶ó¸¶","¹Ù»ç","´Ù");         // text3 °ªÀº "°¡³ª´Ù¶ó¸¶¹Ù»ç´Ù"  -  Ãß°¡
text4=text3.substr(2,4);                           // text4 °ªÀº "´Ù¶ó¸¶¹Ù"  -  ¿©·¯°³ Àбâ
text5=text3.substring(2,4);                        // text5 °ªÀº "´Ù¶ó"  -  ¿©·¯°³ Àбâ
text6=text3.slice(2,4);                            // text6 °ªÀº "´Ù¶ó"  -  ¿©·¯°³ Àбâ
text7=myString.charCodeAt(1);                      // text7 °ªÀº  45208  - ¹®ÀÚ¸¦ ÄÚµåÈ­
text8="a" + String.fromCharCode(64) + "m";         // text8 °ªÀº "a@m"  - Äڵ带 ¹®ÀÚÈ­
text9= text3.indexOf("´Ù");                        // text9 °ªÀº 2  -  ¹®ÀÚÀ§Ä¡
text10= text3.lastIndexOf("´Ù");                   // text10 °ªÀº 7  -  ¸¶Áö¸· ¹®ÀÚÀ§Ä¡
text11= text3.length;                              // text11 °ªÀº 8  -  ¹®ÀÚ±æÀÌ
text12= text3.split("³ª");                         // text12 °ªÀº "°¡,´Ù¶ó¸¶¹Ù»ç´Ù"  -  ¹®Àںи®
text13= text6.concat(text3);                       // text13 °ªÀº "´Ù¶ó°¡³ª´Ù¶ó¸¶¹Ù»ç´Ù"  -  ¹®ÀÚÇÕħ
text14= text13.substr((text13.length-1),1);        // text14 °ªÀº "´Ù"  -  ¸¶Áö¸· ¹®ÀÚ Àбâ
sss = myDate.toString();  day = sss.substring(0,3);     // ¹®Àڷκ¯È¯        
----------------------------------------------------------------------------
// aaa ¹®ÀåÀ» bbb ¹è¿­·Î ÀúÀåÇϱ⠠                // ¹®ÀåÀ» ¹è¿­·Î ÀúÀåÇϱâ
// °á°ú´Â bbb[0]="a" bbb[1]="b" bbb[2]="c" bbb[3]="d" bbb[4]="e"
aaa = "a b c d e";
aaalen = aaa.length;
bbb = new Array();
for (a=0; a<=aaalen; a++)  { bbb[a] = "";  };
bbbno = 0;   bbbchr = "";
for (a=0; a<=aaalen; a++)  {
if ( aaa.charAt(a) == " " ) {  bbb[bbbno] = bbbchr;   bbbno += 1;   bbbchr = "";  
} else { bbbchr += aaa.charAt(a);   };
};
for (a=0; a<=bbbno; a++)  {  trace( "*" + bbb[a] + "*" )   }; 
----------------------------------------------------------------------------
for (a=1; a<=22; a++) {                                       // ÅؽºÆ® ÇÊµå ±ÛÀÚ¼Ó¼º
        this["k"+(a)].textColor=0xff0000;
        this["k"+(a)].border=true;
        this["k"+(a)].borderColor=0xff0000;
        this["k"+(a)].background=true;
        this["k"+(a)].backgroundColor=0xffffff;
};
----------------------------------------------------------------------------
TextField.removeTextField();                                   // ÅؽºÆ® ÇÊµå »èÁ¦
----------------------------------------------------------------------------
createTextField ("instanceName", depth, x, y, width, height)   // ÅؽºÆ® ÇÊµå »ý¼º
      instanceName »õ ÅؽºÆ® ÇʵåÀÇ ÀνºÅϽº À̸§
      depth »õ ÅؽºÆ® ÇʵåÀÇ ±íÀ̸¦ ÁöÁ¤ÇÏ´Â ¾çÀÇ Á¤¼ö (2 ´Â 1¸¦  screen over)
      x »õ ÅؽºÆ® ÇʵåÀÇ x ÁÂÇ¥¸¦ ÁöÁ¤ÇÏ´Â Á¤¼ö
      y »õ ÅؽºÆ® ÇʵåÀÇ y ÁÂÇ¥¸¦ ÁöÁ¤ÇÏ´Â Á¤¼ö
      width »õ ÅؽºÆ® ÇʵåÀÇ ³ÐÀ̸¦ ÁöÁ¤ÇÏ´Â ¾çÀÇ Á¤¼ö
      height »õ ÅؽºÆ® ÇʵåÀÇ ³ôÀ̸¦ ÁöÁ¤ÇÏ´Â ¾çÀÇ Á¤¼ö
instanceName.type = "dynamic";               // ÅؽºÆ® ÇʵåÀÇ ±âº» ¼Ó¼º  (dynamic ¶Ç´Â input)
instanceName.autoSize = "false";             // (±ÛÀÚ¼ö¿¡ ¸Â°Ô Å׵θ® Å©±â ÀÚµ¿ Á¶Àý true false center right)
instanceName.border = false;                 // (Å׵θ®)  
instanceName.borderColor = 0xff0000;         // (Å׵θ® »ö»ó)  
instanceName.background = false;             // (¹è°æ)
instanceName.backgroundColor=0xffffff;       // (¹è°æ »ö»ó)
instanceName.textColor = 0xff0000;           // (±ÛÀÚ »ö»ó)
instanceName.multiline = false;              // (ÇÑÁÙ  ¶Ç´Â  ¿©·¯ÁÙ)
instanceName.selectable = true;              // (ÅؽºÆ® Çʵ带 ¼±ÅÃÇÒ ¼ö ÀÖ´ÂÁö ¿©ºÎ)
instanceName.maxChars = null;                // (»ç¿ëÀÚ°¡ ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ÃÖ´ë ¹®ÀÚ ¼ö) (null ÀÌ¸é ¹«ÇÑ´ë)
instanceName.length = 0;                     // (±ÛÀÚ ¼ö)
instanceName._name = "";                     // (ÀνºÅϽº À̸§)
instanceName.variable = "";                  // (º¯¼ö À̸§)
instanceName.html = false;                   // (html ÅÂ±× »ç¿ë ¿©ºÎ)
instanceName.htmlText = "";                  // (html ű×)
instanceName.wordWrap = true;                // (ÀÚµ¿ ÁÙ¹Ù²Þ )
instanceName._x = 0;                         // (x ÁÂÇ¥)
instanceName._y = 0;                         // (y ÁÂÇ¥)
instanceName._width  = 0;                    // (³ÐÀÌ)
instanceName._height = 0;                    // (³ôÀÌ)
instanceName._xscale = 100;                  // (³ÐÀÌ Á¶Àý %)
instanceName._yscale = 100;                  // (³ôÀÌ Á¶Àý %)
instanceName.restrict = "";                  // (ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ¹®ÀÚ ¼¼Æ®)
instanceName.embedFonts = false;             // (ÀåÄ¡ ±Û²Ã »ç¿ë ¿©ºÎ)
instanceName.password = false;               // (****Ç¥½Ã)
instanceName._visible =  true;               // (º¸ÀÓ/¾Èº¸ÀÓ.  false·Î ¼³Á¤µÈ ÅؽºÆ® Çʵå´Â »ç¿ëÇÒ ¼ö ¾øÀ½)
instanceName.scroll = 0;                     // (ÇöÀç ½ºÅ©·Ñ ¼öÁ÷ À§Ä¡)
instanceName.hscroll = 0;                    // (ÇöÀç ½ºÅ©·Ñ ¼öÆò À§Ä¡)
instanceName.maxscroll = 0;                  // (TextField.scrollÀÇ ÃÖ´ë°ª)
instanceName.maxhscroll = 0;                 // (TextField.hscrollÀÇ ÃÖ´ë°ª)
instanceName.text = "";                      // (±ÛÀÚ)

myformat = new TextFormat();                 // ÅؽºÆ® ÇʵåÀÇ ±âº» TextFormat ¼Ó¼º
myformat.align = "left";                     // (´Ü¶ôÀÇ Á¤·Ä )
myformat.blockIndent  = 0;                   // (¿ÞÂÊ ¿©¹é¿¡¼­ ºí·Ï µé¿©¾²±â. Æ÷ÀÎÆ® ´ÜÀ§)
myformat.indent  = 0;                        // (¿ÞÂÊ ¿©¹é¿¡¼­ ´Ü¶ô µé¿©¾²±â. °¢ ´Ü¶ôÀÇ Ã¹ ÁÙ¿¡¸¸ Àû¿ë)
myformat.bold = false;                       // (ÅؽºÆ®°¡ ±½ÀºÃ¼·Î Ç¥½ÃµÇ´ÂÁö ¿©ºÎ)
myformat.bullet = false;                     // (ÅؽºÆ®°¡ ºÒ¸´ ¸ñ·Ï¿¡ ÀÖ´ÂÁö ¿©ºÎ * Ç¥½Ã)
myformat.color  = 0x000000;                  // (ÅؽºÆ®ÀÇ »ö»ó)
myformat.font = "Times New Roman";           // (ÅؽºÆ®ÀÇ ±Û²Ã)
myformat.italic = false;                     // (ÅؽºÆ®°¡ ±â¿ïÀÓü·Î Ç¥½ÃµÇ´ÂÁö ¿©ºÎ)
myformat.leading  = 0;                       // (ÁÙ »çÀÌÀÇ Çà°£ ¼¼·Î °£°Ý)
myformat.leftMargin  = 0;                    // (´Ü¶ôÀÇ ¿ÞÂÊ ¿©¹é Æ÷ÀÎÆ® ´ÜÀ§)
myformat.rightMargin  = 0;                   // (´Ü¶ôÀÇ ¿À¸¥ÂÊ ¿©¹é Æ÷ÀÎÆ® ´ÜÀ§)
myformat.tabStops = [];                      // (»ç¿ëÀÚ Á¤ÀÇ ÅÇ ÁßÁö¸¦ ÁöÁ¤ // (empty array))
myformat.target = "";                        // (ºê¶ó¿ìÀú¿¡¼­ ÇÏÀÌÆÛ¸µÅ©°¡ Ç¥½ÃµÇ´Â â)
myformat.size = 12;                          // (ÅؽºÆ®ÀÇ Å©±â)
myformat.underline = false;                  // (ÅؽºÆ®¿¡ ¹ØÁÙÀÌ ±×¾îÁ³´ÂÁö ¿©ºÎ)
myformat.url = "";                           // (ÅؽºÆ®°¡ ¸µÅ©µÇ´Â URL)

instanceName.text = "this is my test field \r aaa" + "bbb";    // ÅؽºÆ®¿¡ ³»¿ë ³Ö±â
instanceName.setTextFormat(myformat);        //  ÅؽºÆ® ÇʵåÀÇ TextFormat  º¯°æ
----------------------------------------------------------------------------
instanceName.restrict = "A-Z 0-9";           // ´ë¹®ÀÚ, °ø¹é, ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖÀ½
instanceName.restrict = "^a-z";              // ¼Ò¹®ÀÚ¸¦ Á¦¿ÜÇÑ ¸ðµç ¹®ÀÚ¸¦ ÀÔ·Â
instanceName.restrict = "A-Z^Q";             // ´ë¹®ÀÚ Q¸¦ Á¦¿ÜÇÑ ´ë¹®ÀÚ¸¸ ÀÔ·Â
instanceName.restrict = "\\-"                // ¸¶À̳ʽº ºÎÈ£ (-) ¸¸ ÀÔ·Â
----------------------------------------------------------------------------
aa.html = true;                              // html ÅÂ±× »ç¿ë (b)
aa.htmlText = " this is bold text ";
----------------------------------------------------------------------------
aa.html = true;                              // html ÅÂ±× »ç¿ë (table)
aa.htmlText = "";
aa.htmlText += " ";
aa.htmlText += "
Å×À̺íÀÇ ÅؽºÆ®1 Å×À̺íÀÇ ÅؽºÆ®2
";
aa.htmlText += " À̵¿ Çϱâ ";
----------------------------------------------------------------------------
function Func(arg){  trace ("You clicked me!  Argument was "+arg);   }; 
aa.html = true;                              // html ÅÂ±× »ç¿ë (asfunction)
aa.htmlText = " Click "; 
----------------------------------------------------------------------------
on (release) {TextField.hscroll += 1; }      // ÅؽºÆ®¸¦ ¼öÆòÀ¸·Î ½ºÅ©·Ñ
on (release) {TextField.scroll += 1;  }      // ÅؽºÆ®¸¦ ¼öÁ÷À¸·Î ½ºÅ©·Ñ
x = TextField.maxscroll;                     // ÃÑ ÁÙ¼ö¸¦ Ç¥½Ã
----------------------------------------------------------------------------
TextField.onSetFocus = function(){           // ÅؽºÆ® ÀÔ·Â (ÅؽºÆ®ÇÊµå ¼Ó¼ºÀÌ ÀÔ·ÂÀ϶§)
    this.text=" input data ";                 // ¸¶¿ì½º Ŭ¸¯½Ã ³»¿ë ÀÚµ¿ ÀÔ·Â
};
----------------------------------------------------------------------------
// aaa ¿Í bbb ¶õ µÎ°³ÀÇ ÅؽºÆ® Çʵ带 ¸¸µçÈÄ
aaa.text="1234567890"
Selection.setFocus("aaa");              // ÅؽºÆ® ¸ðµç ¹®ÀÚ Æ÷Ä¿½º. ¹®ÀÚ ¾øÀ¸¸é Ä¿¼­ ±ô¹Ú
Selection.setSelection(2,5);            // (½ÃÀÛÁ¡, ³¡Á¡).  °á°ú´Â "345" Æ÷Ä¿½º
bbb.text = Selection.getBeginInde

Ãâó : [Á÷Á¢ ¼­¼ú] ºí·Î±× ÁýÇÊ - lozzon´ÔÀÇ ºí·Î±×





    



¸ñ·Ïº¸±â »èÁ¦Çϱâ

¹øÈ£ Á¦¸ñ ÀÏÀÚ
437  [CG,±×·¡ÇÈtip] Èçµé¸° »çÁøÀÇ º¸Á¤  2008-04-27
436  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÈÞ´ëÆù ±â±âº¯°æ½Ã ÄÚµå ÀԷ  2010-04-30
435  [BBS_Tip] È¸¿ø°¡ÀԽà °¨»ç¸ÞÀÏ ¹ß¼Û  2009-02-18
434  [À¥µðÀÚÀÎtip] È­¸é¿¡ Å׵θ® ÁÖ±â  2008-04-27
433  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] È¨ÆäÀÌÁöÀÇ ¿¾¸ð½ÀÀ» º¼¼ö ÀÖ´Â »çÀÌÆ®  2018-03-31
432  [À¥µðÀÚÀÎtip] È¨ÆäÀÌÁö ÇØ»óµµ ÃÖÀûÈ­ ÆÁ  2008-05-31
431  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇѱÛÀ̸§ ¿µ¹®Ç¥±â¹ý  2009-03-11
430  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇѱÛÀÌ ¾È ½áÁú¶§,  2008-06-07
429  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇÑ±Û 2002 ½ÇÇà ¾ÈµÉ¶§,  2009-03-31
428  [CG,±×·¡ÇÈtip] Çѱ¹ÀÇ ÀüÅë»ö»ó  2008-04-27
427  [CG,±×·¡ÇÈtip] ÇÏÆ® ºê·¯½¬  2008-04-27
426  [BBS_Tip] ÇϳªÀÇ °Ô½ÃÆÇ¿¡¼­ ¿©·¯½ºÅ²À» Àû¿ëÇÏ´Â ¹ý  2008-04-28
425  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇÊÄÚÀÎ Á¦°Å Á¦°ÅÇÒ ÆÄÀÏ Fill  2009-03-20
424  [CG,±×·¡ÇÈtip] Ç÷¡½ÃÇ÷¹ÀÌ¾î  2008-04-27
423  [À¥µðÀÚÀÎtip] Ç÷¡½Ã¿¡¼­ »õâ °¡¿îµ¥ ¿­±â  2009-03-03
422  [¿µ»ótip] Ç÷¡½Ã¿¡¼­ ¹«ºñŬ¸³ Àμâ,ÇÁ¸°Æ®ÇÏ±â  2013-01-31
421  [CG,±×·¡ÇÈtip] Ç÷¡½Ã¾Ù¹ü¸¸µé±â  2008-04-27
 [À¥µðÀÚÀÎtip] Ç÷¡½Ã¾×¼Ç½ºÅ©¸³Æ®  2009-02-09
419  [¿µ»ótip] Ç÷¡½Ã»çÀÌÁî´Ã¾î³²¹æÁö  2009-01-06
418  [À¥µðÀÚÀÎtip] Ç÷¡½Ã À§·Î ·¹ÀÌ¾î ¶ç¿ï½Ã.  2009-01-30
417  [À¥µðÀÚÀÎtip] Ç÷¡½Ã »õâ ¶ç¿ì´Â °£´ÜÇÑ ¹æ¹ý  2009-02-01
416  [CG,±×·¡ÇÈtip] Ç÷¡½Ã ¸Å´º ¹öÆ°ÀÇ ¸µÅ© °Å´Â ¹æ¹ý  2008-04-27
415 ºñ¹Ð±ÛÀÔ´Ï´Ù [À¥µðÀÚÀÎtip] Ç÷¡½Ã ·Ñ¸µ ¼Ò½º  2010-05-26
414  [À¥µðÀÚÀÎtip] Ç÷¡½Ã ·Îµå ¹«ºñ  2010-04-20
413  [À¥µðÀÚÀÎtip] Ç÷¡½Ã °¶·¯¸® 2Á¾  2010-05-26
¸ñ·Ïº¸±â
12345678910