Hey Guys,

I'm an experienced AS2 coder but i'm finally starting in AS3 and want to port a 
piece of code that alters the Textfield constructor.
I've tried many things.. but think i'm overlooking something.

My original AS2 code was:

// Alter the constructor of the Textfield
var bfrTextField = TextField; 
var bfrStyleSheet = TextField.StyleSheet;

_global.TextField = function() {
     super();
     // Do extra code
};
// reattach the stylesheet class
    _global.TextField.StyleSheet = function() {
     super(); 
};

TextField.prototype = new bfrTextField();
TextField.StyleSheet.prototype = new bfrStyleSheet();
delete bfrTextField;
delete bfrStyleSheet;


Any help would be appreciated.

With kind regards,

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

Reply via email to