I think it's the namespace you need to fix : <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " xmlns:myNameSpace="*" layout="absolute" minWidth="950" minHeight="600" pageTitle="Employee Directory"> then < myNameSpace:PhotoView id="PhotoView" label="Photos" styleName="colorPanel" width="900" height="500" showEffect="WipeDown" hideEffect="WipeUp" /> for example. Apologies if not absolutely correct, I'm literaly just turning off PC and heading for after work pub after long week, so not checking it just now...
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cobb Sent: 08 February 2008 17:19 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.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594 <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 <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 ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

