Tanks Uber.
Its tips had been very good. I solved the problem using:
mx:Resize id=expand widthTo=300 heightTo=250 widthFrom=10
heightFrom=10/
mx:Image id=img source={dgProdutos.selectedItem.imagem} x=10 y=10
resizeEffect=expand/
Best Regards
Raphael
A few follow-up notes I forgot to mention in my first reply.
First, you and I both had a typo in the DataGrid's id (dgProdcts vs
dgProducts).
Second, The canvas width (and correspondingly, height) should be bound
to this: (dgProducts.selectedItem.image as Image).width.
Third, you should not
Raphael,
There are a few things you need for the code to work. Below is how I
recommend changing it.
Your dataGrid's dataProvider is 'produtos', and each object within it
has an 'image' property. I recommend having each of these point
directly to an Image object (as opposed to a String of the
3 matches
Mail list logo