I'm working on my first Flex project and I want to break parts of it out 
into Components.  I've read through the tutorial 
(http://livedocs.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594), 
and for some reason I can't my Flex app to recognize my Components.  I 
have 3 components, GridView.mxml, PhotoView.mxml, and MapView.mxml, all 
of which extent the Canvas container.  Here's my entire main MXML 
application file:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
    xmlns="*" layout="absolute" minWidth="950" minHeight="600"
    pageTitle="Employee Directory">

    <mx:Style source="main.css"/>
   
    <mx:VBox width="900" paddingLeft="0" paddingRight="0" 
horizontalCenter="0" top="12">
   
        <mx:ApplicationControlBar id="acb" width="100%">
            <mx:ToggleButtonBar height="100%" 
dataProvider="{employeeDisplay}">
           
            </mx:ToggleButtonBar>
       
        </mx:ApplicationControlBar>       
           
        <mx:ViewStack id="employeeDisplay" width="100%" height="500" 
creationPolicy="all">   
                   
            <GridView id="GridView" label="Employee Grid" 
styleName="colorPanel"
                width="900" height="500" showEffect="WipeDown" 
hideEffect="WipeUp" />           
           
            <PhotoView id="PhotoView" label="Photos" styleName="colorPanel"
                width="900" height="500" showEffect="WipeDown" 
hideEffect="WipeUp" />
       
            <MapView id="MapView" label="Map" styleName="colorPanel"
                width="900" height="500" showEffect="WipeDown" 
hideEffect="WipeUp" />                   
                       
        </mx:ViewStack>               
       
    </mx:VBox>
</mx:WindowedApplication>

I keep getting the following errors:
1046: Type was not found or was not a compile-time constant: GridView.
1046: Type was not found or was not a compile-time constant: PhotoView.
1046: Type was not found or was not a compile-time constant: MapView.

Do any of you experts see what could be wrong or have any idea what's 
going on?  Any suggestions you can provide will be greatly appreciated!

Thanks,

Eric


Reply via email to