Integrating PHP and Flash

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mosk
Forum Newbie
Posts: 9
Joined: Mon Jun 08, 2009 6:49 am

Integrating PHP and Flash

Post by mosk »

Hi. I'm building a site that's primarily Flash, but I'd like to use php to register users, login users, validate forms, run a forum, and access pull up info from a database on certain pages (which may or may not be flash pages depending how complicated things get).

I'd also like to tap into php's ability to store Session data so I can save a registered user's preferences as to which page of my site should serve as their personal start page; whether or not they'd like to see the intro videos when they navigate to certain pages, what areas they've visited and what items they've collected on my site and so forth.

My thoughts at this point were I might start with a .php landing page and jump into the Flash site after bringing in all the user specific data and TRANSFERRING it to Flash.

I have Flash CS4 (along with Dreamweaver) and PHP 5.29 on my web server (along with fairly recent versions of MySQL and Apache).

I'm fairly new to both AS3 and PHP, so I'm looking for some input as to

1) Is this a good approach?
2) Can someone explain how to get the user data from PHP to Flash?
3) Any good resources out there so I can educate myself on integrating Flash and PHP? (I Googled the web and found some, but my scattershot approach didn't seem to help a great deal).

Thanks for any suggestions
User avatar
lorenzo-s
Forum Commoner
Posts: 43
Joined: Tue Aug 25, 2009 12:25 pm

Re: Integrating PHP and Flash

Post by lorenzo-s »

You can make PHP pages that output XML data, and then read this XML from your Flash video. I think it's the best way to use Flash with dinamic contents. Try to search the Google, you will find lots of tutorials...
Post Reply