Hello,

Try removing the first ‘/’.  Some IDEs liked leading ‘/’ and removed them 
before passing to the compiler.  So try changing to


`    <fx:Style source="skin/1styles.css"/>
Next, check the -source-path compiler option.  Some IDEs automatically included 
folders like `assets`.

After the compiler is finding the sources, we’ll see if you still get errors 
about CSS styles.

-Alex

From: Isabelle LOYER <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Friday, April 15, 2022 at 7:05 AM
To: "[email protected]" <[email protected]>
Subject: Air desktop apllication and External CSS file with AS3Mxml


Hi everyone,
It try to migrate my AIR project from Flex 4.6 to apache Flex 4.16.1(with Air 
33.1)
To customize my desktop application I have an external css file named 
'1styles.css (it's work well with Flex 4.6)
This file is calling on main class (mainApp.mxml) like this

`    <fx:Style source="/skin/1styles.css"/>

`
My project directory Is like this

```
MainLevel
      ____ assets
                        ____ skin
                                      1styles.css
                                      ____ assets
      ____ src
                     mainApp.mxml

```

When I try to launch compilation several message appear
Impossible d’intégrer l’actif depuis "Embed("/../assets/icon_pulldown.png")".

[cid:[email protected]]

But as you can see on the screenshot on the line 553, the path is not the same 
on file and on debug terminal !

I have more than 250 errors like this on this css file. I think the problem is 
the same for all (path description but I don't know how to solve !).

Another point with this CSS file is about unknown property errors, for example 
those errors appears with paddingTop, paddingBottom, paddingLeft, paddingRight, 
vertical-gap and theme-color.
`s|WindowedApplication {
    paddingTop:0;
    paddingBottom:0;
    paddingLeft:0;
    paddingRight:0;
    vertical-gap:0;
    theme-color: #919191;
    font-family: main;
    color: #333333;
    font-size: 12;

}`

I have a similar problem with personal skin
```
@namespace windowSkin "fr.mycompagny.ui.windowSkin.*";

windowSkin|NativeTitleWindow
{
    skinClass:ClassReference("fr.mycompagny.ui.windowSkin.NativeTitleWinSkin");
}

```
In this cas unknown property error about skinClass appear !

So I neeed your help.
Thanks a lot.
Best regards.
--

Reply via email to