Sometimes you have a custom ItemRenderer. That has, perhaps, a button that needs to access one of the methods of you’re main application. how would you accomplish this? read on…
To get a reference to the parent application simply use this:
this.parentApplication
Or if you want to navigate relitavly from the item renderer:
this.parentDocument
If your using a List component this will get a reference to that list
and this will get a reference to that List’s parent document:
this.parentDocument.parentDocumentNOTE: you can omit the ‘this’ keyword. Its a preference thing only.
You can also use these within any mxml document.
peace
-Bill



