Sorry, I wasn’t clear enough. Any path that starts with a “/” should have that
first slash removed, but if the path starts with a “.” so it is already a
relative path, then you don’t need to change it.
So: <fx:Style source="/skin/1styles.css"/>
Should be changed to: <fx:Style source="skin/1styles.css"/>
And: Embed("/../assets/icon_pulldown.png")"
Should be changed to: Embed("../assets/icon_pulldown.png")".
But <fx:Style source="../assets/skin/1styles.css"/> should not be changed.
Then make sure the -source-paths are set appropriately. Next time you reply,
please tell us what source-paths you are using.
Thanks,
-Alex
From: Isabelle LOYER <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, April 20, 2022 at 6:08 AM
To: "[email protected]" <[email protected]>
Subject: Re: Air desktop apllication and External CSS file with AS3Mxml
Dear Alex,
I try to remove the first '/'. But in this case CSS file is not found by the
compiler.
The good path seems to be : <fx:Style source="../assets/skin/1styles.css"/>
But even if this path is good, this does not fix the problem of the paths for
the pictures included in the assets directory.
Thanks for helping.
Best regards
Le 16/04/2022 à 17:13, Alex Harui a écrit :
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]><mailto:[email protected]>
Reply-To: "[email protected]"<mailto:[email protected]>
<[email protected]><mailto:[email protected]>
Date: Friday, April 15, 2022 at 7:05 AM
To: "[email protected]"<mailto:[email protected]>
<[email protected]><mailto:[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.
--