Stupid question from a stupid person...

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
danielmegson
Forum Newbie
Posts: 1
Joined: Tue May 14, 2002 3:39 am
Location: Cambridge, UK

Stupid question from a stupid person...

Post by danielmegson »

:? I know this is probably a stupid question, but would it be possible to have a SWF file with a button with a PHP bit on it (such as $content = "index.swf") then in the HTML have a line <embed>$content</embed> so when the button is pressed the other embedded SWF file would change?
A bit like frames, but smoother?

Please help, as I am not only a newbie but a total dunce!

Dan
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

Flash can only call external scripts like PHP scripts, they can't be embeded in the actual SWF file itself.

You'd have to use something like loadVariables in the ActionScript to call an external PHP script and do anything useful with it.

You probably need to look more into how Flash movies work and how to navigate around in them first - get a good book on the subject (there's tons of them out there) and go through some of the basic stuff.

-enygma
Post Reply