Jump to content

Play Flash, then Another Flash


Warptweet

Recommended Posts

I was wondering...
My website allows you to upload files, and it gets a link that when you click it, it creates a POPUP that displays the flash you uploaded.

Is it possible to play flash in a popup, and after that flash is done playing, play a different flash?
For instance...

intro.swf is played
intro.swf is done playing
now play http://www.warptweet.com/211612151419/$randnum
Link to comment
https://forums.phpfreaks.com/topic/34104-play-flash-then-another-flash/
Share on other sites

-you definately cannot do that with php.

-you might possibly be able to do that with javascript, but I doubt it.  Well, I guess at least one way you could is by having actionscript send a variable out and have javascript look for it, and when it gets it, load a new one.  But that seems like overkill. 

-you can do that inside your intro flash. Use some actionscript on the last frame of your intro to load the new flash file. 
no. PHP is a server side language.  Everything is parsed on the server and then sent to your browser.  After everything reaches your browser, as far as the server is concerned, you don't exist, and visa versa. 

You can send a browser refresh header to the client through php, but that's just php sending a header to your client. It's still done on your computer and has nothing to do with php or the server. 

As far as PHP waiting x amount of time and then doing something else...yes, there are ways to make php "pause" (like the sleep function) but again, that just makes php pause in its parsing, but it's kind of the same as when you go to Burger King and ask for a burger and you're waiting for it, and the employee "pauses" to go to the bathroom or something.  He stops making the burger, but you don't get it until he's done going pee, comes back and finishes it and hands it to you (hopefully he washed his hands).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.