That doesn't really make sense to me. The placed object is an instance of the class, its name has nothing to do with its class. If that were/is the case then you would need a class definition for each instance which would run counter to the point of using a class and would result in a lot of pointless code. no?
In haxe you reiterate the base class definition in the haxe class file, not the named instance. like so: class Foo extends flash.display.MovieClip{} at least thats working right to me. Ralf Fuest wrote: > It's nice to hear that you finally were able to do a successful build. > > When you specify a name attribute in a place tag you need to define a > class in your as3 code with the same name. This is how it works in haXe: > > class MyFoo extends flash.display.MovieClip { > } > > I'm not sure about the exact as3 syntax, but it should me similar. > > Ralf > > >> just worth noting, if you are doing something like: >> >> <?xml version="1.0" encoding="iso-8859-1" ?> >> <movie width="500" height="400" as3="1" framerate="12" version="9"> >> <background color="#cccccc"/> >> <frame> >> <library> >> <clip id="Foo" import="as3class.swf"/> >> </library> >> <place id="Foo" x="0" y="0" depth="1"/> >> </frame> >> </movie> >> >> >> you can not set the name property for the placed clip. e.g. this breaks: >> >> <place id="Foo" name="myFoo" x="0" y="0" depth="1"/> >> > > > _______________________________________________ > swfmill mailing list > swfmill@osflash.org > http://osflash.org/mailman/listinfo/swfmill_osflash.org > _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org