こんにちは、インポートされた as ファイルの var を変更しようとしています。誰でも私を指摘するのを手伝ってもらえますか。
これは、externalfile.as の元のコードです。
private function SetNewPosition()
{
this.newX = this.GetRandomXPosition();
this.newY = this.GetRandomYPosition();
this.totalDistance = this.GetDistance();
var time:Number = this.totalDistance / this.speed;
speedX = (this.newX - this.x)/time;
speedY = (this.newY - this.y)/time;
}
Main.as から newX と newY を変更しようとしています。これを修正する方法を共有してください。