I'm trying to grab a portion of the BrowserManager.fragment (I bring it in as an
object) and then use it to set the selectedChild of a ViewStack. I'm running
into a type conversion error.
Essentially this is what I'm trying to do:
o.view contains the portion of my fragment - say it is set to "sytems" with
var o:Object = URLUtil.stringToObject(browserManager.fragment);
I then try to set the selectedChild of my ViewStack with:
myVS.selectedChild = o.view;
I get the following:
I'm not sure how to make this work. Any thoughts?
If "systems" is in fact a container:
myVS.selectedChild = o.view as Container;
If this post answers your question or helps, please mark it as such.