[問題] 呼叫程式
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
推
09/04 22:16, , 1F
09/04 22:16, 1F