私の Background.as には、背景をスクロールする次のコードがあります。
package{
//Defining the class
import flash.display.MovieClip;
import flash.events.Event;
public class Background extends MovieClip{
function Background()
{
//Executes the enterFrame function
addEventListener("enterFrame", enterFrame);
}
function enterFrame(e:Event)
{
this.x -= 1;
}
}
}
背景は AS Linkage を に設定した MoveclipBackground
です。背景を関数内の開始位置にリセットする方法を考えていましたMain.as