Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2004, 09:51 AM
Authorized User
 
Join Date: Jan 2004
Location: Manchester, , United Kingdom.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Ashleek007
Default 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!

Thanks
Ash:D

My new web design domain
www.askmultimedia.co.uk
__________________
My new web design domain
www.askmultimedia.co.uk
 
Old November 30th, 2004, 11:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Then you access it through the YourMovieClip.YourVariable

Peace
Mike
 
Old December 5th, 2004, 09:46 AM
Authorized User
 
Join Date: Jun 2004
Location: chandigarh, , India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vikas
Default

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

vikas/alakh
alakhniranjan@rediffmail.com
 
Old December 15th, 2004, 08:38 PM
Registered User
 
Join Date: Dec 2004
Location: mecca, , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Beautiful Mind
Default

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



and pleas guys display more




 
Old December 15th, 2004, 09:38 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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?




Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing variables from HTML to php manunair PHP How-To 9 April 9th, 2006 11:27 PM
Passing PHP variables to javascript wfrisch Pro PHP 10 April 5th, 2005 05:13 AM
Passing Variables from PHP to PHP brian3166 PHP How-To 4 January 31st, 2005 12:44 AM
swf file sentme_mail Flash (all versions) 1 November 27th, 2004 09:13 PM
passing variables from PHP to Perl joconnor Beginning PHP 4 July 21st, 2004 08:13 AM





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