Ah - always worth a go but sometimes frustratingly unhelpful!
To be honest if I need a reference to a specific view class (I have a multilayered collapsing menu that has this requirement) I tend to use an as3Signal and pass the view instance itself through the signal, or to create a custom event which requires the view instance as a parameter.
Support Staff5 Posted by Shaun Smith on 12 Mar, 2010 04:07 PM
If target (or currentTarget) is a reference to the context, then
it sounds like you are dispatching view events directly on the
event bus (eventDispatcher), in which case the target is the event
dispatcher itself (which just happens to be the context). The view
components should be dispatching their own bubbling events - using
themselves as the event dispatcher. That way, the target will be
the view component that dispatched the event. Or am I
misunderstanding what you're wanting to achieve?
I agree with Shaun, I came to the same conclusion a while ago
when starting with RL. After that so much more became clear. Shaun
please confirm this:
Each context has it's own eventDispatcher constructed at
startup, this instance is then injected into all Actors of the
shell (or anywhere you want it), thus listening and dispatching
to/from the context's "eventBus" is available everywhere. So strong
referencing your events with the class type becomes essential.