Creating classes and specifying linkage in the library, everything works fine.
But, I want to do this without using the library.
I’m pretty sure registerClass is the way to do this, but all I get as a return is “undefined” when I call it.
Here’s an example:
// bleh.as
class bleh extends MovieClip {
public function bleh() {
this.onRelease = function() { trace('boo'); }
}
public var some_mc:MovieClip;
}
// test.fla
var okok = new bleh();
okok.some_mc.registerClass( 'some_mc', MovieClip )
// and then something like...
while i < 1000
_root.attachMovie( "some_mc", 'tile_inst'+i+j, layer++ );
This doesn’t work, and I’m 99.99% sure I’m using registerClass the wrong way