Jeeva
Jeeva

Reputation: 73

How to run .swc file in flex project?

I have a .swc file and I learned how to add that swc file into the library. I will be happy if any one explain how to use this .swc file into my flex project and run that with an example .

Upvotes: 1

Views: 1677

Answers (1)

adamcodes
adamcodes

Reputation: 1606

You need to create a namespace to access members of the swc. For example, in your mxml application tag you would have

... xmlns:mySwc="com.project.foo.*" ...

This gives the alias mySwc to the swc located in com/project/foo. You would then access its class like

<mySwc:swcClass ... />

Upvotes: 1

Related Questions