0 Replies Latest reply on Mar 23, 2010 5:05 AM by thesteelmam

    Error 2025

    thesteelmam Level 1

      Hi all

      iam developing dicom viewer with flex builder, every thing is ok but i have an error in tile component

      i use 2 tiles one containing the serieses thumbnails and the other containing the instances thumbnail images, when i click an image from the first tile it should generate images in the second tile using repeater, the first time it works fine but to change the images it give me that error

       

      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()[E:\dev\gumbo_alpha\frameworks\p rojects\framework\src\mx\core\UIComponent.as:5415]
          at mx.core::UIComponent/removeChild()[E:\dev\gumbo_alpha\frameworks\projects\framework\src\m x\core\UIComponent.as:5323]
          at mx.controls::SWFLoader/updateDisplayList()[E:\dev\gumbo_alpha\frameworks\projects\framewo rk\src\mx\controls\SWFLoader.as:1248]
          at mx.controls::Image/updateDisplayList()[E:\dev\gumbo_alpha\frameworks\projects\framework\s rc\mx\controls\Image.as:314]
          at Viewers.cdv::smoothimage/updateDisplayList()[D:\Sajed\sajed MySQL\Sajed\src\Viewers\cdv\smoothimage.as:11]
          at mx.core::UIComponent/validateDisplayList()[E:\dev\gumbo_alpha\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:6729]
          at mx.managers::LayoutManager/validateDisplayList()[E:\dev\gumbo_alpha\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
          at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_alpha\frameworks\projects \framework\src\mx\managers\LayoutManager.as:695]
          at Function/http://adobe.com/AS3/2006/builtin::apply()
          at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\gumbo_alpha\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8849]
          at mx.core::UIComponent/callLaterDispatcher()[E:\dev\gumbo_alpha\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8789]

       

       

      this is the code

       

                  <mx:VDividedBox id="pnliserieses" horizontalAlign="center" verticalAlign="middle" label="Serieses"  borderStyle="solid" borderThickness="1" width="100%" height="100%" x="0" y="0">
                      <mx:VBox x="0" y="0" width="100%" height="160">
                          <mx:Label width="100%" text="Serieses"/>
                          <mx:Tile width="100%" height="100%">
                              <mx:Repeater id="insRes" dataProvider="{seriesmodel.serieses}" height="100%" width="100%">
                                  <ns1:smoothimage cacheLimit="200" source="{seriesmodel.getimage(insRes.currentItem.sop_iuid,seriesmodel.imgd,seriesmodel.im gd,0,0)}" click="getinstances(event)" width="{seriesmodel.imgd}" height="{seriesmodel.imgd}" id="imgs" scaleContent="true"/>       
                              </mx:Repeater>
                          </mx:Tile>
                      </mx:VBox>
                      <mx:VBox x="0" y="0" width="100%" height="100%">
                          <mx:Label width="100%" text="Instances"/>
                          <mx:Tile id="pnlimages" width="100%" height="100%">
                              <mx:Repeater id="insRe" dataProvider="{seriesmodel.instancesdata}">
                                  <ns1:smoothimage source="{seriesmodel.getimage(insRe.currentItem.sop_iuid,seriesmodel.thumbsize,seriesmode l.thumbsize,0,0)}" width="{seriesmodel.imgd}" height="{seriesmodel.imgd}" click="getimg(event)"/>
                              </mx:Repeater>   
                          </mx:Tile>                                               
                      </mx:VBox>               
                  </mx:VDividedBox>

      when i click on image in repeater insres it change the dataprovider of the insre repeater and load images in pnlimages tile it works only at the first time

       

       

      any help please?