0

This is the setup:

1) I have an SWF in which I have defined a component in the library with a custom class as the linkage. The component has been set up for "export for run time sharing"

2) I have an fla where I copied over the component and linked to the first SWF via "import for run time sharing". This fla will be published as a SWC. The content of this fla resides in a movieclip to which I give a linkage so I can instantiate it in the app that has the SWC in its lib path.

3) I have a flex application that has the SWC added to its library path.

When I run my flex application, my RSL component does not work at all.

vjuliano
  • 1,474
  • 2
  • 15
  • 29
Tarek
  • 759
  • 2
  • 8
  • 17

1 Answers1

0

If you're creating a swc, that's not RSL. RSL means you're using a compiled SWF to include a symbol in your application. A swc is just a collection of compiled classes (library) that does not hold any specific runtime symbol information. Plus, I don't think Flash does RSL in the traditional flex sense.

I believe what you want to do is add the same options you have in you FLA, but instead create a swf from it. From there, you can embed the symbol you want in flex by doing this:

[Embed(source="path/to/yourSwf.swf", symbol="theSymbolId")]
public var yourSymbol:Class;
J_A_X
  • 12,857
  • 1
  • 25
  • 31
  • The embed works. but the symbol does not. My movieclip is a component, does that cause a pb? – Tarek Oct 14 '11 at 14:50
  • Can you edit you question and paste the code you're using? And what do you mean that your movielcip is a component? Don't you mean the other way around? – J_A_X Oct 15 '11 at 01:22