1 person found this helpful
it means one of your removeChild() methods is problematic. in particular, the caller (ie, the supposed parent) is not the parent of the supposed child.
ie, in your situation, one of your loaders hasn't been added to a parent or has already been removed.
I think I need to add an if statement. As in: if xyzLoader has been loaded then remove it, if not then do not execute the removechild function (when the "other" button is clicked. The question is how to properly code this. I am (re)searching...
you can any displayobject to see if its parent property is null:
removeChild(xyzLoader); // assuming the parent is the current scope
Hey - tried various options but still getting error messages. Maybe it's because it's a .swf file within a .swf file, because clicking on the buttons in the About section of the site doesn't wipe the slate clean like when I click on the main navigation buttons of the site.
If you go to the site: www.loreleynyc.com/loreleynyc.com_neu and click on About and then on Staff and then on Michael Momm you will see that they overlap. I guess because it's a movie within a movie it doesn't automatically clean the slate like it does with the "main navigation" buttons and pages of the site. I'll try a different way now, on the timeline, because i gotta get this site up, but it must be possible with Actionscript, no?
Also, see the html at the bottom, how can I make the margin to the .swf file bigger?
Thanks a million!
I have attached the .fla files aswell, saved in CS3
trying attaching files again
it doesn't let me upload the .fla files for some reason...
i'm sure it's possible with actionscript.
try zipping, after browsing for your file and clicking ok wait a minute of so. then try post message.