Hi All,
I have problem with subject.
I got “undefined” message by trace() in 2 cases as well.
I don’t understand due to “this.createEmptyMovieClip” gives the newly created empty movieclip as well.
As the code shown below.
class CMedia extends MovieClip{
public var oOwnMovie:MovieClip;
public function CMedia()
{
}
public function LoadMe()
{
trace(this.oOwnMovie) // 1. case : output:undefined
this.oOwnMovie=this.createEmptyMovieClip("mc", this.getNextHighestDepth());
trace(this.oOwnMovie) // 2. case :output:undefined
return 1;
}
}
Very annoying when i can not initialize a public member variable in this simple case.
public var oOwnMovie:MovieClip = new MovieClip; throws error
and I could not initialize it by “createEmptyMovieClip”
Does anyone have example on how can i load external movies by classes ?
Thanks in advance!
Csaba