The mx.utils.Delegate class in Actionscript 2.0 is the only way I have found so far to refer to a parent object from within an XML event handler.
From this excellent snippet code snippet by Dej4n, only the Delegate class part seems to work for XML objects.
- More links:
- Macromedia: Proxying Events with the mx.utils.Delegate Class
- Macromedia: Delegate Class documentation
- Darron Schall: The many faces of EventDispatcher
- Phil Chung: The V2 Component Event Model Part 1- EventDispatcher
- Grant Skinner: Using Event Dispatcher
- Colin Moock: EventProxy v. mx.utils.Delegate
- ActionScript.org: Delegate Class tutorial
- Joe Martinez: mx.utils.Delegate not just for component events
- Dopelogik: Why use mx.utils.Delegate in Flash MX 2004?