Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Flash 的舞台上有一条简单的直线,例如,我希望它每 5 帧就会出现并再次消失。
动作脚本 3 可以做到这一点吗?
谢谢!
var myLine:MovieClip; var count:int = 0; addEventListener(Event.ENTER_FRAME, onEnterFrame); function onEnterFrame(e:Event):void { count ++; if(count == 5) { myLine.visible = false; count = 0; } else { myLine.visible = true; } }