PHP Array 2 Flash
- Started
- Last post
- 8 Responses
- tomkat
Whats the best method of passing an array from PHP to Flash?
Can I pass it as a complete array or do i have to split it with limiters? Or pass each item one by one? Or...thanks,
- tomkat0
Hmm well I think this answers my question pretty well..
http://www.kirupaforum.com/forum…
unless you know better ;)
- unfittoprint0
Instead of the usual method [string with & delimiters between each variable] I prefer to make an XML out of the php output.
It's easier and more verstile to work.
- rabattski0
that's a proper way (as described in that forum) but that doesn't work with multidimensional arrays (in that case i would use xml option as suggested before). else it's the fastest, easiest way.
- tomkat0
hmm ok cool guys.. I'l check that when the time comes for multidimensional arrays..
- arlo0
A non xml and custom-er way of doing it is to print the vars as a string with some unusual character as the splitter. I use the carat symbol. Lately I've used xml though also, but you could try the delimited string method too.
- mirola0
http://www.amfphp.org/ - it's the way of the future. it rocks my world. we've been using it for a couple of weeks at work now and i'm well chuffed with it. i would bum amfphp if it i could.
- quik0
i'm well chuffed with it. i would bum amfphp if it i could.
mirola
(may 6 04, 16:14)haha nice man.
I tried to get it going about a year and a half ago, but it never worked properly?Is it easy to get runnin' now?
- mirola0
yeah pretty much. not much has changed in the last 6 months i don't think.