How to manually generate RSL file for Flash Player

On January 4, 2008, in Flex, by Anuj Gakhar

In my last post , I spoke about how we can exclude the RSL files from Flex SWF generation. So, I uploaded framework_3.0.189825.swz file to the same folder where the SWF sits on the server. This file can be found under C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\rsls assuming that you have the default installation. However, a few people reported that they were getting this error “RSL error 1 of 1”, and on some investigation I got to this link and I realized I was missing a RSL file. The problem was that I had uploaded framework_3.0.189825.swz which is the “signed” framework RSL and I also needed to upload the framework_3.0.189825.swf which is the “unsigned” framework RSL. So I thought its just a matter of uploading the missing file and I should be done.

However, I could not find this file in the RSLs folder. So I did some Googling and followed these steps to generate the .swf file.

1) Extract library.swf file from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc
2) Using the command line Flex tools, run the following command :-
optimizer library.swf –output framework_3.0.189825.swf –keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient

This optimizer commands removes any debugging information from the file and makes it fit for deployment.

Then I uploaded the file and the error is now presumably gone. I did test on several different machines.

I just thought this might be some useful information for someone who faces the same problem.

Tagged with:  

6 Responses to How to manually generate RSL file for Flash Player

  1. flex3new says:

    where can i find the command line flex tools.

  2. Anuj Gakhar says:

    in a default installation, they would be sitting here C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\bin

  3. Chris says:

    I know someone got such issue in their using of RSL,but I got another problem on using framework RSL ,that is, when I use the Flex builder 3 professional and the framework version is framework_3.0.0.477 ,I set the property of my flex project to use RSL,and everthing goes well,means I publish the project to my localhost server and the application runs well,means the .swz file is in the flash cache,and the intranet user in my local network runs my app. well and the .swz download to their flash cache folder,
    But,when I upload the whole project file include the fframework_3.0.0.477.swz and framework_3.0.0.477.swf to my server on the Internet the problem appears,it failover,that is ,when I visit my app from the server on the Internet the .swz file doesn’t work,it wasn’t be download to my flash cache folder(I cleared the flash cache folder before testing ) but to the Explorer cache folder,that means it failover.It really confused me.dun know why .God save me !

  4. Anuj Gakhar says:

    @Chris, what version of flash player are you using ?

  5. Seth says:

    @Chris – it sounds like you may be having problems accessing the .swz file because IIS by default doesn’t let you at this file. You may need to add this extension and mark it safe to download.

  6. Davis says:

    mine rsl was not working because mime type was not added to iis . Now its fine thanks
    Davis
    http://askmeflash.com

Leave a Reply to Seth Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2011 Anuj Gakhar
%d bloggers like this: