PDA

View Full Version : Color object problems



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

senocular
December 9th, 2003, 05:44 PM
... I downloaded the fla. Can't see what you're doing exactly, but it will work.