PDA

View Full Version : JavaScript XML and Flash


shoeshine159
06-06-2007, 11:31 AM
Good morning to you all.

I want to write to an XML file from flash, and i was quite devastated to discover that that's apparently impossible. and i understand that i need to use Javascript (or PHP/ASP) to do this.
I also have picked up that to call javascript i need to use getURL,

or is it possible to write a flat txt file from actionscript?

unfortunatly i know very little javaScript.

Anyone able to help me out a bit?

most useful would be a "Javascript if you already know actionscript" tutorial (not the other way round), and a "javascript and XML Tutorial (but not focused on AJAX dernit)"

or a way to call PHP functions from actionscript... (I know php to an extent. I haven't done any XML stuff with it, but i figure it would probably be easier for me to pick up.) although i would rather not be tied to a PHP server.

or is there a much easier way to do all this with CS3 (what im hoping - all the resources i did manage to google were old-ish)

I know the easiest way of saving the state of an XML object would be in a shared object. unfortunatly that only works for a local computer. unless you can save shared objects on a server, and someone forgot to tell me.

Thanks for your time.
I'm sorry if im a bit waffly. It's late at night, and im cutting small squares out of card for a design project. It's driving me a bit nuts.

panel
06-06-2007, 03:35 PM
Good morning to you all.

I want to write to an XML file from flash, and i was quite devastated to discover that that's apparently impossible. and i understand that i need to use Javascript (or PHP/ASP) to do this.
I also have picked up that to call javascript i need to use getURL,

or is it possible to write a flat txt file from actionscript?

unfortunatly i know very little javaScript.

Anyone able to help me out a bit?

most useful would be a "Javascript if you already know actionscript" tutorial (not the other way round), and a "javascript and XML Tutorial (but not focused on AJAX dernit)"

or a way to call PHP functions from actionscript... (I know php to an extent. I haven't done any XML stuff with it, but i figure it would probably be easier for me to pick up.) although i would rather not be tied to a PHP server.

or is there a much easier way to do all this with CS3 (what im hoping - all the resources i did manage to google were old-ish)

I know the easiest way of saving the state of an XML object would be in a shared object. unfortunatly that only works for a local computer. unless you can save shared objects on a server, and someone forgot to tell me.

Thanks for your time.
I'm sorry if im a bit waffly. It's late at night, and im cutting small squares out of card for a design project. It's driving me a bit nuts.

Ypu cann;t save file using javascript.
You also cannot call php function (since php i server scripting technogloy)

you have do send data using get or post and then read data on server side and then ex create xml file.

Here is as3 duscussion, but here is also php example.
http://www.actionscript.org/forums/showthread.php3?t=133865&highlight=.net