Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:00
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  loading arrays
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: loading arrays  (Read 1860 times)
mmp770
Server what's that
*
Posts: 24



View Profile WWW Email
« on: 02/11/02, 04:09 »

Hi,

I'm trying to load several arrays into a Flash movie using the loadVariables action.

I do manage to load them, but I'm trying to transfer some of the workload from the Flash client to the perl script on the server.

I have to load several arrays, of varying length each one of them. The number of arrays to be loaded is not predetrmined, neither is the length of each one of the arrays.

I have a Perl script that arranges all tha arrays into one long string using various characters as separators. After Flash receives the string it rearanges the arrays using the split method. The truth is that everything works, but it's a bit slow.

In order to transfer some of the worload to the server I was thinking of creating the arrays in the Flash movie before issuing the loadVariables, and have the perl script send something along the line

  "hhh[0]=aaa&hhh[1]=bbb&hhh[2]=ccc&hhh[3]=ddd&done=end"

where hhh is one of the arrays created in Flash before the loadVariables statement.

This doesn't seem to work. Has anyone had any experience in this?

Thanks,

mmp770
Logged
flashswami
Jr. Programmer
**
Posts: 55


vene vidi vector


View Profile WWW
« Reply #1 on: 02/11/02, 05:56 »

If you use either XML or PHP then you can use the WDDX set to pass arrays 'as is' into Flash. If you go to http://www.dotdragnet.co.uk and go to webmaster tools>flash scriptlets>articles look for the WDDX tutorial- its got full source code with it.

It uses XML formatted WDDX, but you can do it with PHP as well.
Logged

mmp770
Server what's that
*
Posts: 24



View Profile WWW Email
« Reply #2 on: 02/11/02, 09:03 »

Thanks
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!