ムービークリップであるこのPlayerクラスがあり、幅と高さを設定してからステージに追加しようとしていますが、何らかの理由で、this.widthは0を返し、設定します。サイズは親クラスからのみ機能します。なぜこれが発生するのですか?
public class Player extends MovieClip {
public var head:MovieClip = new Head_normal_front();
public function Player(stage:Stage){
this.addChild(head);
this.width = 10;
this.height = 10;
stage.addChild(this);
}
}
ありがとう