Re: How to set the compiler so that there is no compiled ResourceBundles at all?
Starting with Flex4 each module can override the default styles in the main application. Styles that are different for a module are being setup in the generated code. If you are using a model where all modules use the same styles as the main application, then try compiling with "-isolate-styles=false". This was the behavior in Flex3. Flex4 with skins typically needs "-isolate-styles=true" to function correctly. On Thu, Oct 31, 2019 at 12:56 PM Alex Harui wrote: > That may be true for you, but not necessarily for everyone. You can > specify additional CSS in your application/modules, so I think that's why > the compiler generates CSS by default. > > -Alex > > On 10/31/19, 9:48 AM, "Ramazan Ergüder Bekrek" > wrote: > > As I said those classes are all inside of the main bootstrapper which > loads all the RSLs. All the type selectors are handled in the bootstrapper > one time with -keep-all-type-selectors. All other should not > have them because of the redundency. > > 31.10.2019, 17:44, "Ramazan Ergüder Bekrek" : > > This is what is automatically generated by the mxmlc compiler: > > > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FH2uRka78data=02%7C01%7Caharui%40adobe.com%7C13780dc2068b4426e0c908d75e22158d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637081372795998017sdata=Z4%2Fqz10sSyopq490V%2F4GliQubATN80dYF1SMV%2Fu5jBU%3Dreserved=0 > > > > 31.10.2019, 16:46, "Alex Harui" : > >> 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" : > >> > 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" : > >> > > 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ü > > >
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
That may be true for you, but not necessarily for everyone. You can specify additional CSS in your application/modules, so I think that's why the compiler generates CSS by default. -Alex On 10/31/19, 9:48 AM, "Ramazan Ergüder Bekrek" wrote: As I said those classes are all inside of the main bootstrapper which loads all the RSLs. All the type selectors are handled in the bootstrapper one time with -keep-all-type-selectors. All other should not have them because of the redundency. 31.10.2019, 17:44, "Ramazan Ergüder Bekrek" : > This is what is automatically generated by the mxmlc compiler: > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FH2uRka78data=02%7C01%7Caharui%40adobe.com%7C13780dc2068b4426e0c908d75e22158d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637081372795998017sdata=Z4%2Fqz10sSyopq490V%2F4GliQubATN80dYF1SMV%2Fu5jBU%3Dreserved=0 > > 31.10.2019, 16:46, "Alex Harui" : >> 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" 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" : >> > 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" 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" : >> > > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" wrote: This is what is automatically generated by the mxmlc compiler: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FH2uRka78data=02%7C01%7Caharui%40adobe.com%7Cf7e23d864cb9466aff5b08d75e219e36%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637081370789580865sdata=tORXumpH4sZuMuCvqq1uSQTV0jZ6RZe5KiaSQcMfL90%3Dreserved=0 31.10.2019, 16:46, "Alex Harui" : > 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" 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" : > > 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" 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" : > > > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
As I said those classes are all inside of the main bootstrapper which loads all the RSLs. All the type selectors are handled in the bootstrapper one time with -keep-all-type-selectors. All other should not have them because of the redundency. 31.10.2019, 17:44, "Ramazan Ergüder Bekrek" : > This is what is automatically generated by the mxmlc compiler: > > https://pastebin.com/H2uRka78 > > 31.10.2019, 16:46, "Alex Harui" : >> 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" 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" : >> > 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" >> 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" : >> > > 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" >> 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
This is what is automatically generated by the mxmlc compiler: https://pastebin.com/H2uRka78 31.10.2019, 16:46, "Alex Harui" : > 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" 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" : > > 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" > 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" : > > > 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" > 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" 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" : > 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" 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" : > > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" : > 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" 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" : > > 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" > 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" 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" : > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" : > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
This is the right compiler option and it works! Thank you M. Flex Wisdom! Best Regards Ergü 30.10.2019, 17:01, "Alex Harui" : > 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" 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ü
Re: How to set the compiler so that there is no compiled ResourceBundles at all?
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" 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ü
How to set the compiler so that there is no compiled ResourceBundles at all?
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ü