人æ§ã«ActionScript (ããã㯠JavaScript)ãæããæã«ã絶対ã«é¬¼éã¨ãªãthisã¹ã³ã¼ãã«ã¤ãã¦ã®ã¾ã¨ãã¡ã¢ã ECMAã¹ã¯ãªããã§ã¯é¢æ°ãä»ã®å¤æ°ã«ä»£å ¥å¯è½ãªçºãé¢æ°ã®thisãæèã«ãã£ã¦å¤åãã¾ããã©ãããJavaã¨ããã£ã¦ã人ã«ã¯ãããã¹ã´ã¤æ°æã¡æªããããã®ã§ãã thisã¨ãªä½ãªã®ãï¼ ç«¯çã«è¨ããªãã°ãthisã¯ããã®é¢æ°ããä½ã®ããããã£ã¨è§£éãã¦å¼ã³åºãããï¼ãã«ãã£ã¦æ±ºå®ãã¾ãã é¢æ°ãç´æ¥å¼ã³åºãå ´åã¨ããªãã¸ã§ã¯ãã®ããããã£ã«ä»£å ¥ãã¦ããå¼ã³åºãå ´åãæ¯è¼ãã¦ã¿ã¾ãã function hoge(){ alert(this); //trace(this); flashã®å ´åã¯ã³ãã } var myObj = new Object(); myObj.hoge = hoge; hoge(); myObj.hoge(); ã®ããã«æ¸ããå ´åã
{{#tags}}- {{label}}
{{/tags}}