1
votes

I created few flex components in flash using flex component kit for flash. It generates a swf and a swc file. my question is, how can i load these flash created flex component at runtime and use them. Thanks

1

1 Answers

0
votes

Drop the swc files in your flex project's libs folder (should be next to the src folder in your project).

Your project should automatically pick it up.

You can then check the Reference Libraries in your Package Explorer under FB to see what it gets imported as.

In one of my project I had a map created in flash, exported as a TheMap swc component through Flash Catalyst - but the process should similar with Flash components, maybe using a different namespace.

See screenshot..

alt text

I can use the component by importing flashy.TheMap

Check what the doc says regarding namespaces for the flex component kit.. but you probably can guess it by exploring the swc through the Referenced Libraries