Hi there,

I'm struggeling with the drag manager and external loaded dynamic images. I do 
need this 
for controls with no images displayed. (i.e. dragging with an advanced datagrid 
should 
display a image corresponding to the selected data row - So I do need to load 
the image 
on demand).

if i use

[Bindable]
[Embed(source='myImage.png')]
public var theImage:Class;

[...]

var imageProxy:Image = new Image();
imageProxy.source = theImage;
imageProxy.width = 120;
imageProxy.width = 120;

it works perfect. (Because the image is still preloaded I assume)

But if I use:

var imageProxy:Image = new Image();
imageProxy.source = 'myImage.png' //Normally I would load here my dynamic image
imageProxy.width = 120;
imageProxy.width = 120;

the image isn't displayed.

I've tried everything. (Wait until the image is loaded with an event listener 
won't work 
either). I've tried also to drag the image to a new bitmapasset ... but no way.

Maybe somebody help me out of the jungle? :)

Many thanks!
Dan

Reply via email to