I've actually found out that Flash creates temp versions of each class and then combines them together resulting in many cases the output coming out debunked.
Chris:
I'll try your approach, but i'm skeptical it will change anything BUT i do appreciate your input and hopefully yours will work as i'm over this AS limitations crap.
--
Regards, Scott Barnes - http://www.mossyblog.com http://www.bestrates.com.au Chris Velevitch wrote:
On Sun, 04 Apr 2004 16:43:07 +1000, Scott Barnes <[EMAIL PROTECTED]> wrote:
Chris Velevitch wrote:
I don't understand the issue with calling the parent's init() function?
You are basically saying, you've got an object (TextField) that is like an Label, it has the same properties, methods, behaviours and it also has these other properties, methods and behaviours. So you are defining a new type of object (InputField) that extends the Label type with these additional properties, methods and behaviours and you are saying when you init() an object of this type, it has the same init() behaviour as Label plus, potentially, a couple of other things need to be done on initialisation.
This is bascially the way inheritance works, reusing Label to get an InputField.
Yerp, i know this but the whole Initialization of the objects are driving me up the wall. In theory it should (in other languages) output the same results as ideally wanted, instead with AS2.0 its not. Furthermore, I will want to over-ride some methods of the label to suite the InputField...
Dunno, just wondering how others have done this type of situation with AS2.0
Scott, I think your problem is one of design. You need to separate your output code from you construction/initialisation code.
For example:-
class UIObject extends MovieClip {
var ObjectTypeName:String = "UIObject";
function UIObject() { this.init(); this.ContructionStatus(); }
function init() {
this.InitStatus();
}
function ContructionStatus() {
trace(ObjectTypeName+" Constructed.");
}
function InitStatus() { trace(ObjectTypeName+" Initialized."); }
}
class Label extends UIObject {
var ObjectTypeName:String = "Label";
function Label () { super(); }
function init() { super.init(); }
}
class InputField extends Label {
var ObjectTypeName:String = "InputField";
function InputField () { super(); }
function init() { super.init(); }
}
--- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
