作者bg75522 (bg)
看板Flash
标题[问题] 呼叫程式
时间Thu Sep 4 21:57:35 2008
var m1:Number = 0;
var h1:Number=1000;
onEnterFrame = function(){
//trace(my_sound.position);
if(Math.abs(my_sound.position-h1)<50 && m1==0){
//trace("OK");
this.attachMovie("bg1", "a1", this.getNextHighestDepth());
a1._x = 800;
a1._y = 80;
m1 = 1;
}
if(m1==1){
a1._x = a1._x -20;
if(a1._x<=-100){
//m1=800;
//my_sound.stop();
//my_sound.start(0);
a1.removeMovieClip();
}
}
我想用程式在同一个影格呼叫这段程式,要怎麽作?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.170.32.156
1F:推 pm2001:给这个function一个名字 09/04 22:16