MXML Packages and Components

How can I say that the MXML component is inside some kind of package? Well, this is in a different folder ... I know how to do this ActionScript ... But when I do this in MXML, I don’t declare the package explicitly, because I don’t know how and when I call it in my application, it States that

The package prefix for the package: Component element is not associated.

+3
source share
2 answers

Hope this helps. For a component, just create it in a new folder and from your base class when your call to that component just calls it with a new namespace.

For example, if you are creating a new component, say employee_list.mxml in the src / component folder

ALL_EMP.mxml src/folder, , src/component,

< mx: xmlns: mx = "http://www.adobe.com/2006/mxml" xmlns: Comp = "component. *" layout = "horizontal" >

mxml  (, )...

Taglib JSP...

+5

screencast "" " Flex". .

+2

Source: https://habr.com/ru/post/1726259/


All Articles