Flash -> PHP -> XML
- Started
- Last post
- 25 Responses
- nNine0
Obrigada
Tks Unfit ;)
- unfittoprint0
olá.
Grace, this is [in my opinion] the best one around:
http://www.amazon.com/exec/obido…You'll probably won't find it Fnac or anywhere else [I know I didn't], best to buy it at Amazon.
Anyway I'll email you a couple of tips...tchau.
- nNine0
hi unfit... can you help me find in Portugal a php manual..i've tryed everywhere fnac, Bertrand and still nothing...
- JazX0
yep, go with PHP
- unfittoprint0
PHP is open source [& free]. ASP isn't.
Open Source all the way.
- rson0
What is the advan. of using ASP verse PHP. If any
- mr_flaco0
Same here...
actually curious if you are doing more of your data reformatting inside or outside of Flash. I'm pretty much doing all of my data formatting in Flash before I push it out to php or asp, just wondering if others were doing the same...I dont get to work with other Flash developers often, so...
- unfittoprint0
that depends of the project. But more & more, I use XML or PHP to populate content within Flash...
AS 2.0 is becoming very similar to server side script syntax in the way it deals with classes, objects, etc... The next step maybe connecting it directly with a database, ie. MySQL.
- JazX0
your in school?
- mr_flaco0
*bump*
- mr_flaco0
ok, thank god I hadnt missed that...
hey I'm curious, unfit, do you do more string manipulation with AS or server side?
- unfittoprint0
I may misunderstood something. I though he was parsing the XML using PHP and then loading the retrieved variables into Flaseh...
To write something within the server you'll have to use PHP [or ASP]...
my bad.
- mr_flaco0
Ok wait, have I been doing twice the coding? Can I write xml back to a file directly from Flash?
- instantok0
SUCCESS!!!
im an idiot...just a few easy things i overlooked in my 'oh my god i hope i can get this to work so that i can graduate this year' sort of flusteriness...
- instantok0
the php is fine...its just loading the variables that isnt working...
- unfittoprint0
believe man, that's 2x times the trouble, 2x times the code...
but if you want to do it, I would advise you to test the php alone, to see if it prints the XML correctly. It may have to do with the XML encoding. If it has strange characters you'll have to change its encoding to utf-8.
good luck...
- instantok0
if i had it to redo i would...but i already have the php written and everything integrated...all i need to do is pass the variables...im just doing something wrong somewhere....
- unfittoprint0
if it's just XML you want to handle, use Flash only. no need for PHP.
- instantok0
yeah...usually pretty good...i cant seem to get this one to work tho...i copied and pasted everything (and yeah i remembered to change the url to my php file)...kinda pissing me off...gahhh just this one thing to figure out and my senior project is fully programmed...
- JazX0
yeah you might just skip out on the PHP itself