It sounds like you don't have the SWC with the 
comc.adobe.flex.extras.controls.* classes (which are not part of a standard 
Flex installation) or it isn't on your library-path.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of brucewhealton
Sent: Thursday, January 08, 2009 6:25 PM
To: [email protected]
Subject: [flexcoders] Namespace declaration problem


Hello all,
I have this code that I copied from a text book on Flex. I'm
aware of package notation but I'm not sure how this works in this
example and what is going wrong. In the code, I have within the
Application tag, a namespace definition. So, the Application tag
opens like this:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical"
xmlns:ec="com.adobe.flex.extras.controls.*">

I'm cutting out what is not relevant to the problem. The problem is
that this tag is not recognized by Flex 3, it gives a compile time error:
<ec:AutoComplete id="nameField" labelField="name" lookAhead="true" />
I guess I need to figure out what is inside the controls package that
is named above in the Application.
The error I get on that line is
1046: Type was not found or was not a Compile time constant: AutoComplete.
How might I figure this out? The text where I found this does not
elaborate on this particular code. It is an example of coding that is
a little different then what I am familiar with.

Can anyone help me make sense of this, please?
Bruce

Reply via email to