Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Include a .php page in a Flash movie

Posted on 2005-03-27
Medium Priority
Last Modified: 2013-11-18
OK, here's the deal. I have a completa flash page and I would like to include a .php page right in the middle of it and be able to scroll the page if it longer than the provided space.

Take a look at: http://cuencaweb.com/test.swf that's the movie and the php page should be included in the black space. I still want the menu on top to be able to control the navigation and display other pages when the buttons are clicked.

I hope to get some quick and good input.


Question by:stefanaichholzer
  • 3
  • 2
LVL 18

Expert Comment

ID: 13640372
Sorry if this sounds stupid, but why?
You only need php for server side stuff - flash can do the rest. Unless its something very specific, call the php script from inside flash and return whatever needs to be returned to flash. Can you elaborate on what the php file will be doing?


Author Comment

ID: 13640829
Well, I know flash can do it all, but I don't know how to call or execute php inside my flash movie. I also know what PHP is capable of, but I don't know, as I said, how to interact with flash.

The content in the black part will hold information, picture galleries, contact forms and info, and some stuff, basically a complete web page but I don't want to do the enteri thing in flash as the movie gets sto big, that's why I want to include php files to hold all the info. I will alse need some DB queries inside the pages.

Now can you explain further how to return something from php to a flash movie?, thanx, please be as detailed as you can...

LVL 18

Accepted Solution

Billystyx earned 1500 total points
ID: 13642256
You have 2 options available to you - the first is to use the flash for a banner menu system/prettying up the site, and embedded it into your php /html pages. This may be the most straightforward approach for you, as I'm sure you know how to do this:)
The other option is, when you need yto query the db, you can call the php from flash like this:


this wil runt the php script without opening it, sending all variables with values to the script, and returning any that are sent back with print or echo.
To pick up the variables from flash, in the php script use
and then use it as noraml with

and send stuff back to flash like this:


With loadVariables, you can send it to php and then do a loop in flash, across a frame with this code

gotoAndPlay("myProcessFrame");//where myprocessframe is a frame label of the frame you
//want to move to when done
and the next frame here would loop backto this so flash doesn't try using the variables from the php page until they exist.

You can then set up all your pages in flash and and only call the php pages when you need to access the db.


Author Comment

ID: 13643599
OK, thanx for the input, but I was more complex than just what you posted, I found my own answer at: http://www.sephiroth.it/tutorials/flashPHP/catalog/

I will close this question.

LVL 18

Expert Comment

ID: 13649912
No that's fine:)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question