RSL and RT loading CSS

View: New views
3 Messages — Rating Filter:   Alert me  

RSL and RT loading CSS

by reflexactions :: Rate this Message:

| View Threaded | Show Only this Message

I have an application that uses RSL's.

I also have a couple of CSS's files containing embeded images etc.
that are set to compile to swf and are loaded at run time.

When I run the application it loads all the RSL's from the same
folder as the application as the root gets set automatically to the
main swf.

Then the in the initialization of the application I call
StyleManager.loadStyleDeclarations to load in the compiled css files.

My problems start here as the CSS swf completes loading, for some
reason they cause all RSL's to be loaded again but this time without
root being set so they are effectivwely relatve to root on the server
rather than relative to the application. Therefore to get it all to
work I need all the RSL's in two places!

Secondly the second loading of the RSL's is unecessary as they are
already loaded and in fact just after loading for the second time
they all get unloaded again, it also takes a significant amount of
time so you sit waiting to be able to do something whilst all this
loading/unloading is taking place.

It also seems that loading modules causes the RSLs to get reloaded as
well.

So what am I doing wrong are are RSLs just all messed up.

tks


Re: RSL and RT loading CSS

by Darrell Loverin :: Rate this Message:

| View Threaded | Show Only this Message

The problem with modules loading the same RSLs will be fixed in
Gumbo i10 http://bugs.adobe.com/jira/browse/FB-15470. The
StyleManager.loadStyleDeclarations issue sounds like the same kind
of problem. To work around the problem I would compile my CSS swf
and modules in a separate project where they are statically linked
instead of using RSLs. For every SWC you link as an RSL in you main
application project, link those SWCs as "external" in the CSS swf
and modules project.


-Darrell

--- In flexcoders@..., "reflexactions"
<reflexactions@...> wrote:
>
> I have an application that uses RSL's.
>
> I also have a couple of CSS's files containing embeded images etc.
> that are set to compile to swf and are loaded at run time.
>
> When I run the application it loads all the RSL's from the same
> folder as the application as the root gets set automatically to
the
> main swf.
>
> Then the in the initialization of the application I call
> StyleManager.loadStyleDeclarations to load in the compiled css
files.
>
> My problems start here as the CSS swf completes loading, for some
> reason they cause all RSL's to be loaded again but this time
without
> root being set so they are effectivwely relatve to root on the
server
> rather than relative to the application. Therefore to get it all
to
> work I need all the RSL's in two places!
>
> Secondly the second loading of the RSL's is unecessary as they are
> already loaded and in fact just after loading for the second time
> they all get unloaded again, it also takes a significant amount of
> time so you sit waiting to be able to do something whilst all this
> loading/unloading is taking place.
>
> It also seems that loading modules causes the RSLs to get reloaded
as
> well.
>
> So what am I doing wrong are are RSLs just all messed up.
>
> tks
>



Re: RSL and RT loading CSS

by Darrell Loverin :: Rate this Message:

| View Threaded | Show Only this Message

The problem with modules loading the same RSLs will be fixed in
Gumbo i10 http://bugs.adobe.com/jira/browse/FB-15470. The
StyleManager.loadStyleDeclarations issue sounds like the same kind
of problem. To work around the problem I would compile my CSS swf
and modules in a separate project where they are statically linked
instead of using RSLs. For every SWC you link as an RSL in you main
application project, link those SWCs as "external" in the CSS swf
and modules project.


-Darrell

--- In flexcoders@..., "reflexactions"
<reflexactions@...> wrote:
>
> I have an application that uses RSL's.
>
> I also have a couple of CSS's files containing embeded images etc.
> that are set to compile to swf and are loaded at run time.
>
> When I run the application it loads all the RSL's from the same
> folder as the application as the root gets set automatically to
the
> main swf.
>
> Then the in the initialization of the application I call
> StyleManager.loadStyleDeclarations to load in the compiled css
files.
>
> My problems start here as the CSS swf completes loading, for some
> reason they cause all RSL's to be loaded again but this time
without
> root being set so they are effectivwely relatve to root on the
server
> rather than relative to the application. Therefore to get it all
to
> work I need all the RSL's in two places!
>
> Secondly the second loading of the RSL's is unecessary as they are
> already loaded and in fact just after loading for the second time
> they all get unloaded again, it also takes a significant amount of
> time so you sit waiting to be able to do something whilst all this
> loading/unloading is taking place.
>
> It also seems that loading modules causes the RSLs to get reloaded
as
> well.
>
> So what am I doing wrong are are RSLs just all messed up.
>
> tks
>