[問題] 想請問取出影格標籤的方法

看板Flash作者 (小強)時間18年前 (2008/05/26 20:30), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
想請教各位前輩一個問題 在a影格中  想要取得當前影格標籤當作變數 然後在b影格讀出變數.jpg圖片 於是輸入AS碼 在a影格; var currentLabel = movie.TCurrentLabel(/MovieClip); //傳回影格標籤 在b 影格: this.createEmptyMovieClip("tester_mc", 1); var mclListener:Object = new Object(); mclListener.onLoadInit = function(target_mc:MovieClip) { target_mc._width = 350 target_mc._height = 200 } var image_mcl:MovieClipLoader = new MovieClipLoader(); image_mcl.addListener(mclListener); image_mcl.loadClip(變數+".jpg", tester_mc); 想請問 這個變數要輸入什麼樣的數值呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.124.97.227 ※ 編輯: mars02abcd 來自: 122.124.97.227 (05/26 21:17)

05/29 12:52, , 1F
AS3有currentLabel AS2的話我建議你用其他方法
05/29 12:52, 1F

05/29 12:54, , 2F
等等..你在a影格取得currentLabel,那在b影格直接用不就好了
05/29 12:54, 2F
文章代碼(AID): #18EgrOYN (Flash)
文章代碼(AID): #18EgrOYN (Flash)