aallman
December 8th, 2003, 01:20 AM
Hello all-
I am having a problem using the color object. I have a class I created and want to assign it a color object upon creation.
anchorClass.prototype.onLoad = function() {
this.myColor = new Color(this);
};
Why doesnt this work? The result in the debugger when I select the instance and look under the variables tab shows the 'myColor' variable but when I expand it it goes on forever.
+myColor
+target
+myColor
+target
... this goes on forever...
Thanks,
Andy
PS - the attached fla uses a workaround but the above code is in it
I am having a problem using the color object. I have a class I created and want to assign it a color object upon creation.
anchorClass.prototype.onLoad = function() {
this.myColor = new Color(this);
};
Why doesnt this work? The result in the debugger when I select the instance and look under the variables tab shows the 'myColor' variable but when I expand it it goes on forever.
+myColor
+target
+myColor
+target
... this goes on forever...
Thanks,
Andy
PS - the attached fla uses a workaround but the above code is in it