0
我遇到了一個類的問題,它的路徑...類和路徑
Player.as,Line 4 1172:Definition Stream could not be found。
/main.as
import player.Player;
var _Player = new Player();
/player/Player.as
package player {
import flash.display.Sprite;
import Stream; // Can't find Steam
public class Player extends Sprite {
public var _Stream = null;
public function Player(){
var _Stream = new Stream();
}
}
}
/player/Stream.as
package player {
import flash.display.Sprite;
public class Stream extends Sprite {
public function Stream(){
}
}
}
main.as,第22行\t 1120:訪問未定義的屬性_Stream。 – clarkk 2011-01-28 15:37:24
對不起..它的工作原理:) – clarkk 2011-01-28 15:38:01