To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-23-2004, 02:43 PM   #1
d_dible
Junior Member
 
Join Date: Sep 2004
Posts: 7
Using arrays with LoadVars.sendAndLoad

Is it possible to send and load arrays using LoadVars.sendAndLoad() and php? If it is possible, does anyone have an example on how to do so?

Thanks
d_dible is offline   Reply With Quote
Old 09-23-2004, 03:41 PM   #2
jbum
Senior Member
 
jbum's Avatar
 
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
I don't have a complete example, however, if you already have code that can use PHP and sendAndLoad to load a single string variable, you're nearly there.

To load a string variable, you might send something like

str=xxxxxxxxx

If you put the array elements in the string, separated by a delimiter, such as '.'

str=xxx.xxx.xxx.xxx.xxxx

You can then, in actionscript, split this up into an array.

ary = str.split('.');

- Jim
__________________
jbum is offline   Reply With Quote
Old 03-17-2006, 06:12 PM   #3
illustratedlife
Multitouch Aficionado
 
Join Date: Mar 2006
Posts: 275
This works well:

http://www.sephiroth.it/test/unserializer/index.php
illustratedlife is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.