Thank Amy I have found about "evt.mouseTarget as ..." and now no error appear.
Hai Anh --- In [email protected], "Amy" <amyblankens...@...> wrote: > > --- In [email protected], "lehaianh1986" <lehaianh1986@> wrote: > > > > I know it, but I can't choice another Class because evt.mouseTarget is > > InteractiveObject > > > > I write code > > > > if (evt.mouseTarget.hasOwnProperty("data")) > > var inObj:AdvancedDataGridItemRenderer = evt.mouseTarget; > > > > The error message > > > > 1118: Implicit coercion of a value with static type > > flash.display:InteractiveObject to a possibly unrelated type > > mx.controls.advancedDataGridClasses:AdvancedDataGridItemRenderer. > > var inObj:AdvancedDataGridItemRenderer = evt.mouseTarget as > AdvancedDataGridItemRenderer; >

