I'm a newbie to but it seems to me that you need to be saying
xmlns:namespace = "directoryname.*"
 
"namespace" can be whatever you want.  I use "ns1" and put my stuff in a
directory named Components.
 
so my declaration looks like this:
 
xmlns:ns1="Components.*"
 
brad

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cobb
Sent: Friday, February 08, 2008 12:19 PM
To: [email protected]
Subject: [flexcoders] Problems with Components



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.
<http://livedocs.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594>
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.
<http://www.adobe.com/2006/mxml> 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