I got it working! Thanks Tracy. I removed the following line: "modulestile.removeChild(DisplayObject(event.target));"
I removed the following id: "main_vbox.id = String(NewVbox);" and assigned it to the unload button Thanks for all your help :) --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > First, in "unloadclick", what is the intent of this line? > > modulestile.removeChild(DisplayObject(event.target)); > > > > Next, why is .id always = 0? You are setting it in "AddModule" with this > line below. How are you incrementing the "NewVbox" variable each time? > I shouwed you how to do that in an earlier post. > > main_vbox.id = String(NewVbox); > > > > Finally, in the error, "No such variable: undefined" which variable is > not being found? Debug. > > > > Tracy >