This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting DataGrid's height in ActionScript

 
Booma Devi
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one please send me small example of how to get the Datagrid's id in Action Script...?


For Example

I am having the below mxml say Grid.mxml in view package

I want to use the DataGrid id "dg" in my custom action script... model package... (mxml and actionscript in different package).. how to use the id...?

Please help...
 
Alvin Watkins
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add your AS inline with your MXLM using the <fx:Script> tag. Then, in your AS, say:



BTW, from other ActionScript, you should still be able to access dg. You would do so like so:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic