[haXe] MovieClip tutorial and package
Daniel Daley
dan at chameleoncode.jp
Mon Jul 2 23:33:01 CEST 2007
On Jul 2, 2007, at 3:14 PM, Marc-Andre Lafortune wrote:
>
>
> I now get a bad cast error. What's going on?
>
>
Hello,
You just need to change
var m = cast(parent.attachMovie("MyClass","instance",0),MyClass);
to
var m = cast(parent.attachMovie("some_path.MyClass","instance",
0),MyClass);
and it should work for you. In other words just reference the full
package path in the linkage as well.
I hope that helps!
--Dan--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070702/72af1a7a/attachment-0001.htm
More information about the Haxe
mailing list