AHA! I figured out my own problem which always feels great.

I was making the problem more complex than it was. So, just extended
the ViewStack with each view (WebUserView and ManagerView), then since
that already extends UIComponent and DisplayObject, I went ahead and
just popped it on as a child to my VBox and voila.

Now, I'll just feed it a parameter instead of a hard value. Solution
below for anyone who may have the same problem!

<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
        xmlns:mx="http://www.adobe.com/2006/mxml"; 
        layout="absolute" 
        xmlns:view="com.desktopae.view.*"
        minHeight="600" minWidth="990" creationComplete="init()">
        
        <mx:Style source="assets/css/global.css" />
        
        <mx:Script>
                <![CDATA[
                        import com.desktopae.view.*;
                        
                        private var webUserView:WebUserView;
                        private var managerView:ManagerView;
                        
                        private function init():void{
                                webUserView = new WebUserView();
                                mainVBox.addChild(webUserView);
                                
                        }
                        
                ]]>
        </mx:Script>
        
        <mx:VBox id="mainVBox" height="600" width="990" top="20"
styleName="applicationVBox">
                 <mx:ApplicationControlBar dock="true" width="100%">
                        <mx:Image source="assets/img/desktopaelogo.gif" />
                 </mx:ApplicationControlBar>    
        </mx:VBox>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to