Re: [flexcoders] Re: Resize Component

2007-04-12 Thread Raphael R. Franco
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

[flexcoders] Re: Resize Component

2007-04-11 Thread Uber_Nick
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

[flexcoders] Re: Resize Component

2007-04-11 Thread Uber_Nick
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