On 1/25/15, 12:37 PM, "chris_d_k" <[email protected]> wrote:

>Hi,
>
>I have some Components in the package
>com.company.project.views.viewsOfTypeA
>and in
>com.company.project.views.viewsOfTypeB
>
>when I want to define styles in a css file do I have to create seperate
>namespaces for the two folders:
>@namespace a "com.company.project.views.viewsOfTypeA.*";
>@namespace b "com.company.project.views.viewsOfTypeB.*";
>
>a|ViewA1, b|ViewB1
>{
>/*css definitions*/
>}
>
>or is there a way to use one namespace also for all subfolders
>@namespace b "com.company.project.views.???";

Pretty sure you can’t do that.

You could create an xml namespace.  In the Flex SDK, the mx namespace:
"library://ns.adobe.com/flex/mx” encompasses classes from different
packages (mx.core.Application, mx.controls.Button).

Look at how the SDK's build.xml, compile-config.xml, mx-manifest.xml and
default.css files are setup for an example.

-Alex

Reply via email to