Jump to content

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).
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.