I'm having this EXACT same problem - but my .swcs were published in Flash CS4. They're just asset swcs full of MovieClip symbols shared out for AS. The RSL works perfectly in Flash Builder 4 - when you select the Non-Digest radio button when configuring the RSL. Apparently, this feature was removed in Flash Builder 4.5, and now my RSLs don't work.
Since I'm compiling the RSL swc in Flash Pro and not via the command line, I'm not able to include the -compute-digest=true command, and I can't find that feature in Flash Pro. (the error in FB is wrong - the command is -compute-digest, not -create-digest).
Does anybody have any idea how to compile an RSL swc in Flash Pro w/ -compute-digest=true?
I don't know about Flash Pro but you can add a digest to your SWC after it is created. Use the "digest" tool in the Flex SDK to add/update a digest in your SWC.
First extract the library.swf file from the SWC and then use it with the digest tool.
>digest library.swf -swc-path mySWC.SWC
Brilliant Darrell! Thanks for the snappy reply. Trying it now - fingers crossed!
I DID try putting CONFIG::COMPUTE_DIGEST | true in the optional compiler properties in the Flash Pro, but it didn't seem to have any effect.
update: Eureka - it worked!
Some notes for others trying this:
the syntax Darrell wrote is correct - but note that the -swc-path SomeRSL.swc means the path to the corresponding swc from which you extracted the library.swf. It doesn't generate a NEW swc, it just updates the existing one.
Message was edited by: Wrævn
But every time I upgrade my SWC in Flash should I run digest? Is there a workaround to make this process automatically in Flash?
Yes. I don't think there is a process to do this is in Flash.
Hi Darrell, thanks for your reply.
But.. why Adobe has not updated this issue in Flash CS5.5, to add a <digest> directly in SWC?
Flash SWCs are primarily intended for single component transfer between
Flash projects (and import into Flex). They make poor RSL containers since
they only contain a single component.
So what you're saying is - "Your'e doing it wrong." :-P
Which I suspected was the case. What we're doing with the Flash-based swcs really should go into a Theme, but for whatever reason, they're RSLs for now. I'm sure we'll be changing this architecture soon enough - thanks for additional feedback. This will help me convince the team that we are, in fact, doing it wrong.
I would like that Flash Builder and Flash are updated together ...
Flash SWCs are unusable in Flash Builder without using digest component SDK!
I thought they were usable to import components into your app, but not as
In theory, you can have your own Flex project that aggregates several Flash
SWCs into a Flex SWC library and RSL.
Hi Flex harUI,
Flash SWCs work as "Merged" into my FlexProject but not as "RLS".
I try to create a Flex Library Project adding my Flash SWCs (as Merged) but doesn't work because Flash SWCs are not compiled into the Flash Library Project