NavigationParsley and local scope trouble with waypoints
Hi,
I'm using NavigationParsley in order to "switch" three component (using property "automationName") contained in a View A.
This view contains so the waypoint meta tag and a PM (wherever it is) triggers the "switch" by using the NavigationEvent.createNavigateToEvent(...) event.
This works perfectly on the (default) global scope.
Now I've got the following issue : A tabNavigator having several tabs (same type - I'm using Observer + itemRenderer for the tab) and each of these tabs got their own context.
In the PM which trigger the NavigationEvent (in the specific context) I'm using the "local" scope to dispatch events. In order to do so my PM contains [ManagedEvents(names="eventName1, eventName2, ..., navigateTo", scope="local")].
I've tested if the NavigationEvent was correctly dispatched by adding in a PM (whithin the same context) the following method:
[MessageHandler(selector="navigateTo",scope="local")]
public function testNavigationEvent(event:NavigationEvent):void{
trace('test navigation event was caught');
}
And the event is rightly caught (and so dispatched) in the apprpriate context
BUT the view A does not trigger the event based on automationName as it was doing when event was set as "global".
So I guess [Waypoint] in the view A does not handle the event if set as "local" (but then how to set the waypoint as "loacal" ???)
Thx to answer if you get some fix/explanation/everything which could made the Navigatio working with local event ![]()
