0 Replies Latest reply on Feb 21, 2007 11:04 PM by vertex_shader

    Drag n Drop with Non-embedded Images?

    vertex_shader Level 1
      Hi,

      All of the Drag 'n Drop demos use an embedded image. For example:

      [Embed(source='someImage.jpg')]
      public var someImage:Class;

      // in the drag handler...
      var imageProxy:Image = new Image();
      imageProxy.source = someImage;

      And that works. However, this doesn't work:

      <mx:Image id="myImage" source="someImage.jpg"/>

      // in the drag handler...
      var imageProxy:Image = new Image();
      imageProxy.source = myImage.source;


      Am I missing something? Or is embedding mandatory?