[問題] as3 function 裡面的this?

看板Flash作者 (小心)時間13年前 (2010/10/27 05:08), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
請問一下 假設我在stage上拉了個名稱"test"的影片元件 然後as3 我可以用this["test"]抓到他 但在第2層以後的function卻抓不到了(undefined)? ex. function foo1(){ trace(this["test"]); V function foo2(){ trace(this["test"]); X } } 那這些this是指什麼呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.122.232

10/27 08:16, , 1F
你可以寫 trace( this );
10/27 08:16, 1F
文章代碼(AID): #1CnqDaw4 (Flash)