iphone/ipad: how to incorporate flash animation in objective-c?
I'd like to incoporate some flash animation (a 2d character ani开发者_如何学编程mation) into my objective c app.
I heard you can create and export a flash cs5 app into iphone. But I don't want to export an entire app. Just a small component...
for example, I want to get an animation of a 2d character waving that was made in flash and just incorporate that into my objective c app. Can this be done?
If it's really that simple of an animation, it would probably be best to go with an image sequence. You can create a UIImageView and set the animationImages property as an array of UIImage objects.
Another alternative would be to use one of the Flash to HTML5 conversion tools and include a UIWebView in your app.
i think that exporting a flash cs5 application into an iphone application has nothing to do with objective c. it is an independent process. you cannot merge both processes and export a flash component to your obj-c application.
I don't believe there are any supported ways of getting Flash content onto a iPhone or other iOS device. Apple doesn't want Flash on the iPhone.
Adobe has released an experimental tool called Wallaby that can export Flash files (.FLA) into HTML5, so perhaps you could use a UIWebView to load that content?
UIWebView will also support SVG on the iPhone, so if you can convert your source material to SVG, that might also work. Many vector animation tools will export to SVG.
Finally, you could code your animation by hand using Core Graphics and Quartz, but that might be painful for anything but the most simple animations.
精彩评论