4 Replies Latest reply on Jun 14, 2011 9:07 PM by sivaciti

    MultiScaleImageissue in flex

    sivaciti Level 1

      dzc_output.xml:

      <?xml version="1.0" encoding="utf-8"?>

      <Collection MaxLevel="8" TileSize="256" Format="jpg"

      NextItemId="3" ServerFormat="Default"

      xmlns="http://schemas.microsoft.com/deepzoom/2008">

      <Items>

      <I Id="0" N="0"

      Source="nature/dzc_output_images/_1920x1200_widescreen_wallpaper_nature_01188_elevation_19 20x1200.xml">

      <Size Width="1920" Height="1200" />

      <Viewport Width="3.0399999999999996" X="-0" Y="-0" />

      </I>

      <I Id="1" N="1" Source="nature/dzc_output_images/71b61ce2b93e87bcc9e6fb8617437483.xml">

      <Size Width="1920" Height="1200" />

      <Viewport Width="3.0400000000000014" X="-1.0200000000000007"

      Y="-0" />

      </I>

      <I Id="2" N="2" Source="nature/dzc_output_images/143_size_1920x1200_002.xml">

      <Size Width="1920" Height="1200" />

      <Viewport Width="3.0400000000000018" X="-2.0400000000000018"

      Y="-0" />

      </I>

      </Items>

      </Collection>

       

       

      And i am giving the source to multiscaleimage as

       

      <openzoom:MultiScaleImage id="image" left="0" right="0" top="0" bottom="0" source="../nature/dzc_output.xml">

      <openzoom:controllers>

      <openzoom:KeyboardController/>

      <openzoom:MouseController/>

      </openzoom:controllers>

      <openzoom:transformer>

      <openzoom:TweenerTransformer/>

      </openzoom:transformer>

      <openzoom:constraint>

      <openzoom:CompositeConstraint>

      <openzoom:ZoomConstraint maxZoom="200" minZoom="0.5"/>

      <openzoom:VisibilityConstraint visibilityRatio="0.5"/>

      <openzoom:CenterConstraint/>

      </openzoom:CompositeConstraint>

      </openzoom:constraint>

      </openzoom:MultiScaleImage>

       

      when i am ruuning the application i am geeting this issue

       

      ArgumentError: Error #2004: One of the parameters is invalid.

      at flash.display::Graphics/drawRect()

      at org.openzoom.flash.scene::MultiScaleScene/drawFrame()[/Users/dani/Documents/workspace/ope nzoom/src/main/flash/org/openzoom/flash/scene/MultiScaleScene.as:230]

      at org.openzoom.flash.scene::MultiScaleScene/setFrameSize()[/Users/dani/Documents/workspace/ openzoom/src/main/flash/org/openzoom/flash/scene/MultiScaleScene.as:215]

      at org.openzoom.flash.scene::MultiScaleScene/set sceneWidth()[/Users/dani/Documents/workspace/openzoom/src/main/flash/org/openzoom/flash/s cene/MultiScaleScene.as:170]

      at org.openzoom.flex.components::MultiScaleContainer/set _2072878234sceneWidth()[/Users/dani/Documents/workspace/openzoom/src/main/flash/org/openz oom/flex/components/MultiScaleContainer.as:297]

      at org.openzoom.flex.components::MultiScaleContainer/set sceneWidth()[/Users/dani/Documents/workspace/openzoom/src/main/flash/org/openzoom/flex/co mponents/MultiScaleContainer.as:554]

      at org.openzoom.flex.components::MultiScaleImage/addImage()[/Users/dani/Documents/workspace/ openzoom/src/main/flash/org/openzoom/flex/components/MultiScaleImage.as:413]

      at org.openzoom.flex.components::MultiScaleImage/sourceLoader_completeHandler()[/Users/dani/ Documents/workspace/openzoom/src/main/flash/org/openzoom/flex/components/MultiScaleImage.a s:444]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at flash.net::URLLoader/onComplete()

       

      pls any body solve my issue pls