[haXe] Method checking
Nicolas Cannasse
ncannasse at motion-twin.com
Thu Apr 6 14:24:58 CEST 2006
> My second idea was:
> interface StrictMovieClip {
> ...declarations...
> }
> extern class MovieClip implements StrictMovieClip, implements Dynamic {
> ...declarations...
> }
> which also seems much more logical. But when I subsequently try:
> var movieClip : flash.StrictMovieClip = flash.Lib.current;
> I'm informed that "Class not found : flash.StrictMovieClip". I don't
> see what I'm doing wrong, unless MovieClip.hx has a special magic status
> and I'm not supposed to mess around inside it.
When you're using flash.StrictMovieClip, haXe is looking for
flash/StrictMovieClip.hx which does not exists. The best then is to
declare the interface in a different file, or to add "import
flash.MovieClip" that will make the types declared in the
flash/MovieClip.hx file available.
Nicolas
More information about the Haxe
mailing list