开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜