Skip navigation
Currently Being Moderated

How to manually manage destinations?

Oct 28, 2010 1:33 AM

Hi all,

 

How can I manually add or remove a "child" from being registered in the navigation system?

 

I mean, I have a viewstack container( working as a waypoint ) such as:

 

<mx:ViewStack id="wizard">

<s:NavigatorContent automationName="1" />

<s:NavigatorContent automationName="2" />

<s:NavigatorContent automationName="3" />

</mx:ViewStack>

 

 

Navigation works here "out-of-the-box" but I imagine I want, at some stage, to remove( programatically ) the second child so that the automationName="2" is never a navigation point anymore.

 

On the other hand, I also need to, at some point, add new navigation points to this viewstack container:

 

Let's say I want to add:

 

var newNavContent: NavigatorContent = new NavigatorContent();

newNavContent.automationName="4";

 

wizard.addChildAt( newNavContent, 1 );

 

So that the new navigation point( child ) is available for the navigation system.

 

How can I do that?

 

 

A.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points