我希望在Action Script 3.0中播放音乐时,每隔10秒显示一次图像。我对As3非常陌生。我已经开始学习this.please了,但我需要在很短的时间内做到这一点。我不知道获得As3的起点是什么,给我一些建议。
发布于 2011-08-13 14:54:43
var timer:Timer = new Timer(10000);
timer.addEventListener(TimerEvent.TIMER, timerAction);
timer.start();
function timerAction(e:TimerEvent):void
{
// do your actions here
}并参考该链接以获取帮助。http://www.republicofcode.com/tutorials/flash/as3slideshow/4.php
发布于 2011-08-13 14:46:43
我想,that就是你需要的。另外,为了加载位图,看看Loader类。这就是它的工作原理:
var loader:Loader=new Loader();
loader.load(new URLRequest(/*Here goes path, including extension, for example */"image.gif"));
addChild(loader); // After that you can treat `loader` just like any visible objecthttps://stackoverflow.com/questions/7049046
复制相似问题