Found it! Stupid case sensitivity!! In my calls to my components, I was referencing them as:
<GridView id="GridView" When it should have been: <GridView id="Gridview" I guess Flex didn't like the ID being the same as the Component name! D'oh! Thanks! Eric Eric Cobb wrote: > Oh, if it helps, I'm using the Flex 3 Beta, and this is for an AIR > Desktop Application. > > Eric Cobb wrote: > >> Thanks for the help, everyone! >> >> I've followed everyone's advice, and now I have xmlns:ns1="*" in my >> WindowedApplication tag, and I have all of my Components referenced as: >> <ns1:GridView, <ns1:PhotoView, and <ns1:MapView. But, I still get the >> same 3 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. >> >> Any more suggestions? >> >> Thanks! >> >> Eric >> >> Brad Bueche wrote: >> >> >>> Oh and when you are referncing your components in mxml >>> >>> You need to be typing (continuing my example below) >>> >>> <ns1: >>> >>> If you type just that, the dropdown list should pop up listing all >>> your components in there (pretty cool). >>> >>> Therefore your full syntax would be: >>> >>> <ns1:PhotoView ....> >>> >>> brad >>> >>> >>> >>> -----Original Message----- >>> *From:* [email protected] >>> [mailto:[EMAIL PROTECTED] *On Behalf Of *Brad Bueche >>> *Sent:* Friday, February 08, 2008 12:51 PM >>> *To:* [email protected] >>> *Subject:* RE: [flexcoders] Problems with Components >>> >>> 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.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 >>> >>> >>> >>> >> >> -- >> 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 >> >> >> >> >> >> > > > > -- > 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 > > > > >

