[flexcoders] Re: Namespace declaration problem
It is not uncommon for someone to code something that requires someone else's code but they can't (or won't) include that code because they don't want to go through any licensing. They should have told you that it was required and where to go and get it. Was there ANY documentation to that effect? --- In flexcoders@yahoogroups.com, brucewhealton br...@... wrote: I thought, when I first read this, that you were saying that it is a part of a normal flex installation. The author of the text said that I need to download and install the auto-complete edit field component into my libs directory. I wonder if that means just for this project or the libs directory for my Flex installation. I don't understand why, if a 3rd party package or set of components is required, they were not included with the rest of the content that comes with the text. It almost sounded like I should have somehow known to locate and install this auto-complete component and that I should have known how to install it into this project. Is it just me, or is it strange to think that the reader of this text would have known to do this without even mentioning anything about needing this extra component, how to get it and how to install it or install it for this project? So, yes, I did follow package notation, even before I asked this question. I mean the explanation of it was helpful to refresh my memory as to how it works. Then it just left me thinking something is seriously missing that I need. Please let me know what you think... Shouldn't a writer at least mention that one is going to need to install this component into this package? Thanks, Bruce --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote: 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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brucewhealton Sent: Thursday, January 08, 2009 6:25 PM To: flexcoders@yahoogroups.com 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
[flexcoders] Re: Namespace declaration problem
I thought, when I first read this, that you were saying that it is a part of a normal flex installation. The author of the text said that I need to download and install the auto-complete edit field component into my libs directory. I wonder if that means just for this project or the libs directory for my Flex installation. I don't understand why, if a 3rd party package or set of components is required, they were not included with the rest of the content that comes with the text. It almost sounded like I should have somehow known to locate and install this auto-complete component and that I should have known how to install it into this project. Is it just me, or is it strange to think that the reader of this text would have known to do this without even mentioning anything about needing this extra component, how to get it and how to install it or install it for this project? So, yes, I did follow package notation, even before I asked this question. I mean the explanation of it was helpful to refresh my memory as to how it works. Then it just left me thinking something is seriously missing that I need. Please let me know what you think... Shouldn't a writer at least mention that one is going to need to install this component into this package? Thanks, Bruce --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: 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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brucewhealton Sent: Thursday, January 08, 2009 6:25 PM To: flexcoders@yahoogroups.com 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
[flexcoders] Re: Namespace declaration problem
Bruce I'll see if I can explain it. The xmlns (XML Namespace) is used by mxml to state where component(s) are located. It is basically the same as using an import statement in Actionscript. In the namespace (Or import statement) think of the dots as directory (or folder) delimiters. So, in your case, in the src folder there would be a com folder. In that folder will be a adobe folder. In that folder will be a flex folder. In that folder will be a extras folder. In that folder will be a controls folder. In that folder will be a component named AutoComplete. Now, you could actually have this in your own source or it could be set up in a SWC in the libs directory. If you don't have the SWC then Flex will look for the specific directory structure as above. If both are missing then you will get this error. --- In flexcoders@yahoogroups.com, brucewhealton br...@... wrote: 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
[flexcoders] Re: Namespace declaration problem
Ok, thanks. Someone was saying that this was part of a flex installation. So, maybe I need to go into the library definition and somehow add this folder. I have used package definitions like this but when the text I was following didn't have this particular folder structure. I'll try to add this in the libraries section and if that doesn't work I'll write to the author of the text to see if he left out something from the code. Bruce --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Bruce I'll see if I can explain it. The xmlns (XML Namespace) is used by mxml to state where component(s) are located. It is basically the same as using an import statement in Actionscript. In the namespace (Or import statement) think of the dots as directory (or folder) delimiters. So, in your case, in the src folder there would be a com folder. In that folder will be a adobe folder. In that folder will be a flex folder. In that folder will be a extras folder. In that folder will be a controls folder. In that folder will be a component named AutoComplete. Now, you could actually have this in your own source or it could be set up in a SWC in the libs directory. If you don't have the SWC then Flex will look for the specific directory structure as above. If both are missing then you will get this error.