You could always use the send, load and sendandload methods in Flash to accomplish server-side integration as well. In terms of using Ajax, I wrote an article for InformIT about using the ExternalInterface to communicate with Ajax, you can check it out here.
The issue with these options is that you cannot transfer objects easily, rather you would need to serialize them as XML or JSON. With that said, you can still accomplish some powerful data transfers with the options listed above. It all depends on what you are looking to do.
<a href="http://www.krishadlock.com" target="_blank" rel="nofollow">www.krishadlock.com</a><br /><a href="http://www.krishadlock.com/blog" target="_blank" rel="nofollow">www.krishadlock.com/blog</a><br /><a href="http://www.studiosedition.com" target="_blank" rel="nofollow">www.studiosedition.com</a><br /><a href="http://www.amazon.com/exec/obidos/redirect?link_code=as2&path=ASIN/0672329123&tag=krishadlock-20&camp=1789&creative=9325" target="_blank" rel="nofollow">Ajax for Web Application Developers</a>
Fran�ois De Grandi
Joined: Oct 27, 2003
Thank you very much for the precious hints about JSON. I have tapped into your articles, and I will now explore the options of using JS Objects in that manner.
The only link that I do not see clearly yet is the Server Side of the process :
- I am building a WebApp with Ruby on Rails, which stores data for estimating House Remodeling Costs (Measurements, Unit prices etc.) : the user inputs the measurements of the rooms (e.g. building elements) she needs to remodel, ideally with a visual interface (that's the reason for the use of Flash), and the App (Server and/or Client) calculates the resulting costs (Unit prices are fed via another 'back-office-modelUpdating interface)
- now how do I generate/serialize JSON data on the Server side to send back to be de-serialized on the Client side ? I suppose I can write parsing code for my Ruby-ServerObjects (which are connected to the MySql database) : I just need some hints about pitfalls to avoid and Best Practice essentials in that matter