When you create custom component for your application or you want to use third party components in your application, you need to indicate where they are in your application directory structure. For this, you required to specify a namespace definition for the component to identify the directory location.
For example, If you create custom component MyCustomButton in mycomp package in the application root directory, you specify the namespace as given below. In this example, CompRI will be used to refer the components which are packaged in mycomp directory.
|
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
<CompRI:MyCustomButton/> </mx:Application> |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.