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 explicitly call expand.play() on the DataGrid's click event. That action is done automatically by specifying the resizeEffect in the Canvas.
Nick Matelli | Consultant, Amentra Inc. Email: [EMAIL PROTECTED] 1775 Wiehle Ave Suite 103, Reston VA 20190 --- In [email protected], "raphamaster20004" <[EMAIL PROTECTED]> wrote: > > Hi, > > I have one dataGrid and necessary that when the user to click in one > determined item of the same it executes the Resize in an image, but it > executes only one time the effect, in the image, being that when click > in the effect does not happen again. > > This is my code: > > <mx:Resize id="expand" target="{img}" widthTo="300" heightTo="250"/> > > <mx:DataGrid id="dgProdcts" dataProvider="{produtos}" x="284" y="28" > height="151" width="406" click="expand.play();"> > <mx:columns> > <mx:DataGridColumn headerText="Nome" > dataField="modelo"/> > <mx:DataGridColumn headerText="Linha" > dataField="linha"/> > </mx:columns> > </mx:DataGrid> > > <mx:Image source="{dgProducts.selectedItem.image}" x="10" y="10" > width="30" height="60" id="img"/> > > tanks for attention > > Raphael >

