0 Replies Latest reply on Apr 4, 2007 10:01 AM by csrocks

    Error when resizing TileList

    csrocks
      I populate the TileList with an ArrayCollecion of Images were the image has been loaded using Loader.loadBytes(). If you resize the TileList, I get the following error. If the images are assigned to an internal asset it works fine. Something to do with the dynamic loading.

      ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
      at flash.display::DisplayObjectContainer/removeChild()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::$removeChild()
      at mx.core::UIComponent/removeChild()
      at mx.controls::SWFLoader/load()
      at ImageSCI/load()
      at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties()
      at mx.core::UIComponent/validateProperties()
      at mx.managers::LayoutManager/validateClient()
      at mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::makeRowsAndColumns()
      at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
      at mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDisplayList()
      at mx.core::UIComponent/validateDisplayList()
      at mx.managers::LayoutManager/::validateDisplayList()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()