Click to See Complete Forum and Search --> : continuous .swf playing
myanavrin
09-07-2007, 01:11 PM
Hello to all,
I want to ask how can I create a website that has continuous playing .swf even though changing web page.
dtm32236
09-07-2007, 02:51 PM
That's not possible. Every time you change a page, the entire page reloads, including the flash.
The only way to do that is to make your site with frames (but no one does that anymore).
discorax
09-11-2007, 01:03 PM
There are also more complex solutions. If you wanted to keep the page loaded and change the content you could see about a AJAX solution, or just some simple JavaScript.
But dtm32236 is right, if you reload the page you can not keep a swf playing.
You could launch the SWF in a pop-up (also not really advisable) and then it would keep playing when the page behind it changed...that may be something that could help you.
Search for javascipt pop-up in the javascript forums, I'm sure there's an example in there somewhere.
dtm32236
09-11-2007, 01:17 PM
If you wanted to keep the page loaded and change the content you could see about a AJAX solution, or just some simple JavaScript.
Ryan is right...
You can write your page using visible/hidden divs. This way, you can change content without reloading the page.
Essentially, this makes a div hidden by default, and on a mouseclick, the CSS property will change from display:none; to display:block.
I haven't read through this, or tested the example; but check out:
http://www.geocities.com/technofundo/tech/js/showhide.html
or Google 'visible hidden div' or 'show hide layers'.... something like that.
keep in mind - this may not be a realistic approach if your site is tons and tons of pages. you don't want to overload one page with too much content - hidden or not.