[PHP] php arrays into flash

2003-07-07 Thread Jim McNeely
I know a lot more about php than about flash (which is probably sad) 
but does anyone know how to take info in an array and pass it into an 
array in flash? I think they have arrays, but the only thing I can seem 
to find in flash to get info from php is the loadvariable actionscript 
step. I looked around via google and I couldn't find anything within a 
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php arrays into flash

2003-07-07 Thread Jim Lucas
don't know about loading it directly in flash, but you could always create a
javascript array in the page that loads the flash module and then have flash
read it or javascript enter it into the flash module.

Jim lucas
- Original Message -
From: Jim McNeely [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 4:29 PM
Subject: [PHP] php arrays into flash


 I know a lot more about php than about flash (which is probably sad)
 but does anyone know how to take info in an array and pass it into an
 array in flash? I think they have arrays, but the only thing I can seem
 to find in flash to get info from php is the loadvariable actionscript
 step. I looked around via google and I couldn't find anything within a
 reasonable time that seemed to answer this question.

 TIA

 Jim McNeely
 Envision Data
 [EMAIL PROTECTED]
 http://www.envisiondata.com


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php arrays into flash

2003-07-07 Thread Miles Thompson
Jim,

The key words are implode on the PHP side and split on the Flash side. 
Here's an example:

The data is returned from PHP like so, after doing the connect, select, 
etc. to produce an array of 7 dates for back issues ... no claim that this 
is optimal code.

if( $result  mysql_num_rows( $result ) = 1 )
{
while( $row = mysql_fetch_array( $result ) )
{
 $arrdates[] = $row[ dtStory ];
}
$issuedates = implode( ,, $arrdates );
 } 

echo issuedates=.$issuedates;

and in Flash, as part of the LoadVars  varGetDates.onLoad = function( 
success) callback is handled like so ...

_root.arrIssueDates = issuedates.split( , );
_root.dtDate = _root.arrIssueDates[0];
for (i=0; i  arrIssueDates.length; i++)
{
   //load  combo-display and data same in this case
   cboIssueDates.addItem(arrIssueDates[i],arrIssueDates[i]);
}
At 06:29 PM 7/7/2003 -0500, Jim McNeely wrote:
I know a lot more about php than about flash (which is probably sad) but 
does anyone know how to take info in an array and pass it into an array in 
flash? I think they have arrays, but the only thing I can seem to find in 
flash to get info from php is the loadvariable actionscript step. I looked 
around via google and I couldn't find anything within a reasonable time 
that seemed to answer this question.

TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php arrays into flash

2003-07-07 Thread Pascal Polleunus
Jim McNeely wrote:
I know a lot more about php than about flash (which is probably sad) but 
does anyone know how to take info in an array and pass it into an array 
in flash? I think they have arrays, but the only thing I can seem to 
find in flash to get info from php is the loadvariable actionscript 
step. I looked around via google and I couldn't find anything within a 
reasonable time that seemed to answer this question.
You can do it via XML, or you could use serialize in PHP and write an
unserialize function in ActionScript.
Macromedia Flash MX Documentation:
http://www.macromedia.com/support/flash/documentation.html
TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] php arrays into flash

2003-07-07 Thread Ralph
Here is a site you might want to look at:

http://polar-lights.com/en/


-Original Message-
From: Jim McNeely [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 4:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php arrays into flash

I know a lot more about php than about flash (which is probably sad) 
but does anyone know how to take info in an array and pass it into an 
array in flash? I think they have arrays, but the only thing I can seem 
to find in flash to get info from php is the loadvariable actionscript 
step. I looked around via google and I couldn't find anything within a 
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php