flash - ActionScript 3 : XML data exhange -
let's say, example, flash file loaded. while loading, retrieves data xml file.
if wanted change value in xml, automatically change in glash? if not? there method in actionscript allow change occur instantly after xml file changed?
when flash loads in xml file, it's downloading data - it's one-time transaction. if change file, flash retains version downloaded unless tell download again.
it sounds want bit more dynamic simple xml config file, right? there ways make flash interact directly server, without using xml dump intermediary. depending on need, might consider looking amfphp flash remoting - allows flash call methods directly on server, , passes typed objects. this, depending on data you're passing around implement server polling flash calls server once every few seconds see if there's new data, or effect?
alternately, if need tighter information flow between server , flash might consider setting socket connection. google flash's native socket , xmlsocket classes , may able need. once set up, can create socket on server sends data directly flash @ real time. i've not done deployed web apps, know it's possible. i've used sockets flash interface arduino board plugged local pc etc - have lot of options.
i hope helps, let me know if have questions.
Comments
Post a Comment