3 Replies Latest reply on Jan 16, 2007 9:49 AM by ntsiii

    Drag newbie question

    shahinyan Level 1
      Dear friends,
      i am struggling with a problem of dragging an image generated via Repeater from an XML file with coordinates binded. Only thing i want is to be able to move that image from one place and drop it to another on the same canvas:

      <mx:HTTPService showBusyCursor="true" id="mapping_service" url=" http://localhost:8500/gallery/assets/map_thumb.xml" resultFormat="e4x"/>
      <mx:XMLListCollection id="destinations_coll" source="{mapping_service.lastResult..destination}"/>
      <mx:Canvas width="800" height="600" id="v1">
      <mx:Repeater id="buttons" dataProvider="{destinations_coll}">
      <mx:Image x="{buttons.currentItem.x_coord}" y="{buttons.currentItem.y_coord}" width="100" height="100" toolTip="{buttons.currentItem.destination_name}"
      source="{buttons.currentItem.thumbnail}" />

      What is the way of doing this? Please help.
      Thank you in advance,