How to run .swc file in flex project?
I have开发者_JS百科 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 .
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 ... />
精彩评论