开发者

Flash CS5 on iPhone - developing client/server data apps

开发者 https://www.devze.com 2023-01-20 11:40 出处:网络
I am looking to develop basic client server data application to add value to a website. The website is .net based and opening an api such as asmx web service, json or xml would be simple.

I am looking to develop basic client server data application to add value to a website.

The website is .net based and opening an api such as asmx web service, json or xml would be simple.

Can anyone tell me what are the limitations - technically, what is possible with flash and also what Apple con开发者_如何转开发sider to be good practice.

Does anyone have any Actionscript code examples?


I don't think anything with Flash involved is considered "good practice" by Apple...

Kidding aside, I would go with JSON, it fits ActionScript well, since ActionScript is based on ECMAscript. That JSON has less overhead than XML can also be a good thing on a phone (less bandwidth).

Working with XML is easy in ActionScript since it has E4X, but if you should at a later stage switch to Objective-C/Cocoa, I believe JSON is betters suited than parsing XML.

What you should probably avoid is setting up a SOAP web service. In my experience, it may look as a tempting option on the .Net server side, but is cumbersome to work with on the client side, in scripting languages like ActionScript (and SOAP has a lot of overhead).

All this said with reservation for that I haven't done any development for the iPhone using Adobe's Flash CS5 packager for iPhone.

0

精彩评论

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