6 Replies Latest reply on Nov 26, 2008 10:32 AM by i.w.o

    Binding ViewStack selectedChild Property Using a String Value

    ericbelair Level 1
      The attached code example (pseudo code) compiles, but throws a Run-Time Error:

      TypeError: Error #2007: Parameter child must be non-null.
      at flash.display::DisplayObjectContainer/getChildIndex()
      at mx.core::Container/getChildIndex()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core \Container.as:2409]
      at mx.containers::ViewStack/set selectedChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as :557]

      Is there some way I can get this to work without having to call a function to set the selectedChild?

      Thanks.