Hi list...

I have a class (pixViewer extends MovieClip) and an empty MovieClip
(linkage:emptyMC, not registered to any class in the linkage dialog).  I
want attached this emptyMC to the stage and I want it to be an instance
of pixViewer.

__proto__ works, but why won't prototype or registerClass?

//works:
var pv:MovieClip = _root.createEmptyMovieClip("pixViewer", 180);
pv.__proto__ = new pixViewer();
pv.onLoad();

/*
Why doesn't this work:
pv.prototype = new pixViewer();
pv.registerClass(pixViewer);
*/


Thanks,
- MM

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to