1 Reply Latest reply on Dec 5, 2006 1:59 PM by mac_martine

    Link Button back to Base State

    tali77
      I have a base state and a created another state call 'appState'. On the appState, I have a button that I want to link back to the base state. I've tried different ways and am unable to link it back to the base state of my application.

      I get this message when i use the "currentState='' to link back to the base state... also, on my appState page, i also have another viewStack, i'm not sure if that interferes with linking it back to the base state or not.

      RangeError: Error #2006: The supplied index is out of bounds.
      at flash.display::DisplayObjectContainer/getChildAt()
      at mx.core::Container/getChildAt()
      at mx.controls::ToggleButtonBar/styleChanged()
      at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::addingChild()
      at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::addingChild()
      at mx.core::Container/addChildAt()
      at mx.states::RemoveChild/remove()
      at mx.core::UIComponent/::removeState()
      at mx.core::UIComponent/::commitCurrentState()
      at mx.core::UIComponent/setCurrentState()
      at mx.core::UIComponent/set currentState()
      at AIGTemp/___Button15_click()




      Can someone please help me?

      Thank you!