9 Replies Latest reply on Oct 16, 2007 5:09 PM by kglad

    Image Gallery - ArgumentError: Error #2025

    paulmason411
      Hi Guys,

      I am new to flash cs3 and action script 3.0. I have made 3 image galleries, that all work fine by themselves, however i have recently tried to link them to a central flash file and I am getting the error:

      ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
      at flash.display::DisplayObjectContainer/removeChild()
      at home_fla::MainTimeline/gotoHome()

      I have attached the code for the central/home flash file below.

      Basically, all I am trying to achieve is to add the client_images.swf as a child when the client images button is clicked and then listen for a mouse click on the client_images home button and remove the child. This works if I click the home button straight away. If i don't click the home button with in 3 seconds, i get the error.

      I have had a good look for a solution to this problem and haven't had much luck. Any help would be greatly appreciated. I can send the .fla's if you need more information.

      Cheers,
      Paul.