I've been experimenting on subclassing MovieClip but I've just ran into a problem concerning built-in methods, take the following example:
 
an instance named "foo" is already present on stage (no linkage id). And I want to cast foo into MyButton:
 
class MyButton extends MovieClip {
    public function onRollOver() {
        trace("bar");
    }
}
 
foo.__proto__ = MyButton.prototype;
 
I would now expect the onRollOver event to fire correctly but it does not, any clues on why this happens to built-in methods?
 
--
Regards,
Simen Brekken
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to