Warptweet Posted January 14, 2007 Share Posted January 14, 2007 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 playedintro.swf is done playingnow play http://www.warptweet.com/211612151419/$randnum Quote Link to comment https://forums.phpfreaks.com/topic/34104-play-flash-then-another-flash/ Share on other sites More sharing options...
.josh Posted January 14, 2007 Share Posted January 14, 2007 -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. Quote Link to comment https://forums.phpfreaks.com/topic/34104-play-flash-then-another-flash/#findComment-160376 Share on other sites More sharing options...
Warptweet Posted January 14, 2007 Author Share Posted January 14, 2007 Wouldn't it be possible to do something like...After XX Seconds, play XXXXXXX.swf?Just wondering, because I could have sworn that PHP had a thing where you could do an action after a certain amount of time...? Quote Link to comment https://forums.phpfreaks.com/topic/34104-play-flash-then-another-flash/#findComment-160378 Share on other sites More sharing options...
.josh Posted January 14, 2007 Share Posted January 14, 2007 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). Quote Link to comment https://forums.phpfreaks.com/topic/34104-play-flash-then-another-flash/#findComment-160381 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.