You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Darrell Loverin <da...@gmail.com> on 2019/11/02 13:36:01 UTC

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 <ah...@adobe.com.invalid>
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" <e....@yandex.com>
> 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 <s:Module> should not
> have them because of the redundency.
>
>     31.10.2019, 17:44, "Ramazan Ergüder Bekrek" <e....@yandex.com>:
>     > 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%7C13780dc2068b4426e0c908d75e22158d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637081372795998017&amp;sdata=Z4%2Fqz10sSyopq490V%2F4GliQubATN80dYF1SMV%2Fu5jBU%3D&amp;reserved=0
>     >
>     > 31.10.2019, 16:46, "Alex Harui" <ah...@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.bekrek@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" <ah...@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.bekrek@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" <ah...@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.bekrek@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ü
>
>
>