开发者

How to run .swc file in flex project?

开发者 https://www.devze.com 2022-12-23 02:54 出处:网络
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

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 ... />
0

精彩评论

暂无评论...
验证码 换一张
取 消