开发者

How to add .swf file in cocos2d

I want to add an animation in starting screen of my game. I did that animation in flash. how to load it in coc开发者_JS百科os2d


Don't think you're going to be able to do this. Flash has never been able to run on the iPhone/iPod and very likely never will at least for the foreseeable future. Someone would have to write a custom SWF file loader and player specifically for Cocos (no small task). Even then I doubt Apple would allow such an application to be approved. I would suggest converting your SWF to an iPhone/iPod compatible movie format. QuickTime (mov) for sure is supported, mpg and avi may work as well.


There is and will be no Flash support on the iPhone. You'd have to to convert the animation into single images and use cocos2d's animation system.


The thing you wanted four years ago has released! It's called GAF This is library and a converter for flash animations.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜