p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Flash (all versions) (http://p2p.wrox.com/forumdisplay.php?f=59)
-   -   PHP passing variables to .swf file (http://p2p.wrox.com/showthread.php?t=21907)

Ashleek007 November 30th, 2004 09:51 AM

PHP passing variables to .swf file
Right, not sure whether this is in the right forum, but you guys have helped me out a boat load before so here goes,

I have got a flash site, which uses dynamic text boxes with varibles attached to each dynamic text field. I know how to display text from a database using PHP in a basic php file but i want the .swf file to display these PHP variable values too.

How do i go about getting the information stored in my PHP variables passed into my flash MX .swf file?

i know basic actionscripting by the way!


My new web design domain

harpua November 30th, 2004 11:04 AM

You would use the loadVariables("YourFileName.php", YourMovieClip)

Then you access it through the YourMovieClip.YourVariable


vikas December 5th, 2004 09:46 AM

There are 3 ways to do this:
1.) LoadVars (read Macromedia Flash Documentation) -for small apps
2.) Using data transfer using XML. -for medium apps
3.) Flash Remoting using AMFPHP. - for largescale apps


Beautiful Mind December 15th, 2004 08:38 PM

how can ya display text from a database using PHP in a basic php file


and pleas guys display more [:I]

Snib December 15th, 2004 09:38 PM

Do you want to use Flash at all?

What database are you using?

-Snib - http://www.snibworks.com
Where will you be in 100 years?

All times are GMT -4. The time now is 03:26 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.