0
我試圖確定動態剪輯當前處於哪個幀編號(_currentframe)。as2獲取動態剪輯的當前幀
在這裏,我在庫 -
_root.clipName="rabbit";
的「_root.clipName」設置剪輯的名稱必須是可變的,因爲它的變化。
在這裏,我將其連接到階段 - (作品鏈接庫夾「兔子」高度重視的階段)
Object(_root).attachMovie("myClip",_root.clipName,_root.getNextHighestDepth(), {_x:200), _y:200)});
然後,我想存儲幀數不同的功能使用 -
_root.myFrame=_root.clipName._currentframe; <- (doesn't work)
使用下面的方法跟蹤,沒有似乎回到幀號 -
trace(_root.clipName._currentframe); - returns undefined
trace(_root.clipName[_currentframe]); - returns undefined
trace(_root.clipName._currentframe); - returns undefined
trace(_root['clipName']._currentframe); - returns undefined
有什麼想法我可能在這裏做錯了嗎?
謝謝!
..我想要你的寶寶。非常感謝,它的工作! – cheeseomelete 2014-12-27 20:06:04