【as自定义函数的-----调用----问题】
大纲007 2011-02-17 06:02:31 初学问题
1)我在首帧的动作面板中写:
function displayGreeting():Void{
trace("display this");
}
displayGreeting();
运行后,output只输出一行display this
2)或者,我在首帧动作中写:
function displayGreeting():Void{
trace("display this");
}
在第二帧动作写:
displayGreeting();
运行后,output会不停地一行一行地输出display this
?)为什么这样?我知道它重复播放,但第一种情况怎么没事?谢谢了!