1 person found this helpful
You need to have one as the Main application (starts with the <mx:Application> tag) and all others are child components in it. It looks like you might have two Applications? I'm can't quite tell.
This was helpful because I had two applications. But it's still not seeing my viewstack id from the main application. I thought if i added this it would see the componet.
It won't see it just by creating the namespace that contains it. There has to actually be an instance of it in the application. So in your case, your main application file (lets call it MyApp.mxml) would look something like this:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*"> <components:Main id="main"/> <components:GetComponent id="getComp"/> </mx:Application>
Then, you can reach down (mind you this isn't best practice) into those components to access their public properties. In a script block in MyApp.mxml, you could access the VBox with getComp.vbTB.
I don't know the ins and outs of your application, but perhaps Main is the main application, so then you would add GetComponent as a child of it instead of both Main and GetComponent being child components of the MyApp application. Does that clear up the confusion?