0 Replies Latest reply on Nov 23, 2011 4:10 AM by Francisc

    Find if NavigatorContainer has child by ID

    Francisc Level 3

      Hello,

       

      I want to know if the selectedChild of a ViewStack contains a certain component.

       

      <mx:ViewStack>
          <s:NavigatorContent>
              <components:CompOne id="compOne"/>
          </s:NavigatorContent>
          <s:NavigatorContent>
              <components:CompTwo id="compTwo"/>
          </s:NavigatorContent>
      </mx:ViewStack>

       

      I want to check if the selectedChild contains compOne or compTwo for the example above.