I didn't look through all of it, but I can see some of it is coming from the 
defaults.css files in the Flex SWCs.  A SWC is a zip file so you could replace 
the defaults.css with an empty one and see what happens.

-Alex

On 10/31/19, 9:44 AM, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com> wrote:

    This is what is automatically generated by the mxmlc compiler:
    
    
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FH2uRka78&amp;data=02%7C01%7Caharui%40adobe.com%7Cf7e23d864cb9466aff5b08d75e219e36%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637081370789580865&amp;sdata=tORXumpH4sZuMuCvqq1uSQTV0jZ6RZe5KiaSQcMfL90%3D&amp;reserved=0
    
    31.10.2019, 16:46, "Alex Harui" <aha...@adobe.com.invalid>:
    > What is in your MyMOdule_Styles class? That should give you a clue as to 
where the CSS is coming from. I think if there are no selectors at all then it 
won't generate the class so you have to get rid of all of the selectors in that 
class. Some may be coming from SWCs.
    >
    > -Alex
    >
    > On 10/31/19, 6:17 AM, "Ramazan Ergüder Bekrek" <e.bek...@yandex.com> 
wrote:
    >
    >     I tried these compiler settings:
    >
    >     -defaults-css-url=styles.css -defaults-css-files=styles.css 
-theme=styles.css
    >
    >     I've created a dummy CSS file with:
    >
    >     /* CSS file */
    >     @namespace s "library://ns.adobe.com/flex/spark";
    >     @namespace mx "library://ns.adobe.com/flex/mx";
    >
    >     .fontButton {
    >             fontSize: 16;
    >             fontWeight: bold;
    >     }
    >
    >     s|List{
    >             skinClass: null;
    >     }
    >
    >     But nothing changes as the MyModule_Styles class is still generated.
    >
    >     30.10.2019, 21:59, "Alex Harui" <aha...@adobe.com.invalid>:
    >     > Don't know for sure. There is some logic that won't generate that 
class if there are no CSS style definitions to output. You might be able to 
control what CSS the compiler sees by setting the compiler.defaults-css-files 
option and/or messing around with the .css files in the SWCs.
    >     >
    >     > HTH,
    >     > -Alex
    >     >
    >     > On 10/30/19, 1:46 PM, "Ramazan Ergüder Bekrek" 
<e.bek...@yandex.com> wrote:
    >     >
    >     > Is there also any other way to remove the generation of the 
_Module_Styles class which is always compiled by default?
    >     >
    >     > 30.10.2019, 17:01, "Alex Harui" <aha...@adobe.com.invalid>:
    >     > > Don't know for sure. Try setting:
    >     > >
    >     > > -locales=
    >     > >
    >     > > IOW, specify an empty list of locales. The compiler looks like it 
will not attempt to add resource bundles if there are no locales.
    >     > >
    >     > > HTH,
    >     > > -Alex
    >     > >
    >     > > On 10/30/19, 7:45 AM, "Ramazan Ergüder Bekrek" 
<e.bek...@yandex.com> wrote:
    >     > >
    >     > > Greetings again!
    >     > >
    >     > > I would like to know if there is a way to bypass the Resource 
Compilation of a module or an Application in Flex.
    >     > > I realized that duplicates are in every SWF and I don't need 
them. In the RSL loader that is loading the Apache Flex SWFs
    >     > > from my app all the Resources are already there and loaded once. 
I don't want that to happen in my sub modules or sub applications because they 
are redundant
    >     > > and takes up RAM resources in the VM.
    >     > >
    >     > > Is this possible?
    >     > >
    >     > > Ergü
    

Reply via email to