Thank you, Gordon! That did the trick. Here is the clone() method I wrote:

                public function clone():ScheduleElement{
                        var clone:ScheduleElement = new ScheduleElement();
                        clone.setLabels(this.crsDeptLbl,this.crsNumLbl);
                        clone.x = this.x;
                        clone.width = this.width;
                        return clone;
                }

One thing to note is that I didn't have to specify "override" for this
function.

--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> A child DisplayObject can only have one parent, so you can't add 'item'
> to more than one Canvas. When you add it to the second one it gets
> removed from the first, etc.
> 
>  
> 
> You need to implement a clone() method to make copies of your items.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 

Reply via email to