Flash Background.

I want to have a flash in the background of my webpage. How would i do so using either java or html? Thanks.
[108 byte] By [doomsday123] at [2007-11-19 11:05:45]
# 1 Re: Flash Background.
Flash would be a little heavy on dial-up users. What would be the purpose?
Dr. Script at 2007-11-8 0:21:19 >
# 2 Re: Flash Background.
Here is a snippet:

<html>
<head>
<script language=javascript>
function flash_background() {
document.bgColor="black";
document.bgColor="white";
}
</script>
</head>
<body>
<h1>Hello, world!</h1>
<script language=javascript>flash_background()</script>
</body>
</html>
olivthill at 2007-11-8 0:22:20 >
# 3 Re: Flash Background.
Ok, now I read the thread again and I am confused ...

If you want a flash in the background, you could just run an interval to select a random color from an array. Not user friendly, not recommended.

If you want an actual flash .swf file in the background, as I first thought, that would be ehavy on dialup users.
Dr. Script at 2007-11-8 0:23:15 >
# 4 Re: Flash Background.
No, not like flashing black and white. I mean like a animated flash movie. I know it will be heavy on dial-up but its ok.
doomsday123 at 2007-11-8 0:24:20 >
# 5 Re: Flash Background.
Okay, a flash file ... again, this would mean you are losing over half of your visitors. Possible, probably, but flash files were not intended to be used as such. Any animation in the background of a site is an invite to leave.

Unless it has a good purpose, I don't see any reason for doing this.
Dr. Script at 2007-11-8 0:25:17 >
# 6 Re: Flash Background.
I know its not popular to do so but I just want to know how to do it. It is just a stupid website me and my friends are messing with. There wont be any traffic on the site in the first place besides me and my friends so its ok.
doomsday123 at 2007-11-8 0:26:24 >
# 7 Re: Flash Background.
Ok, well I still don't know why it has to go in the background. I suppose your best option is to set it the size to fill your screens, and then using z-index effectively, make everything else in front of it ...
Dr. Script at 2007-11-8 0:27:28 >
# 8 Re: Flash Background.
What exactly will this flash be doing and why do you want it in the background? Flash is usually so attractive that you want it to be the main object of attention.

Remember that the resolution of a flash object also causes drop in speed. If you want to cover the whole screen then it will be a large file size, depending on the controls and images you put in it, and it will operate slower.
PeejAvery at 2007-11-8 0:28:20 >
# 9 Re: Flash Background.
Well, I can actually see a good use for this. I am trying to build an optional template for phpBB that will have a rotating planet in an upper corner, with the site logo above it. I want a moving star background, which I was thinking of doing as a gif file, but I wanted the planet to have a very dynamic feel to it, with weather patterns and clouds, etc. High bandwidth for an *optional* skin is not a problem, and in my case, will be a way of proving concepts that I am trying to sell, so to speak. It has to be way cool, and demonstrate a lot of diverse specialities to catch the eye the way I want it to...

z-levels is the way to go...

;'{P
Jason Clearbrook at 2007-11-8 0:29:25 >
# 10 Re: Flash Background.
You do not want to use a GIF or a flash file that would cover the whole background. This would take much bandwidth and be a hefty file. It would also be a tug on the machine that had to process it. It would cause the webpage to run slow.

Concerning the rotating world. If it is under or near 100x100 pixels, use it as an animated GIF.
PeejAvery at 2007-11-8 0:30:24 >
# 11 Re: Flash Background.
I want to have a flash in the background of my webpage. How would i do so using either java or html? Thanks.

[ Incorrect Code Removed ]
Varenic at 2007-11-8 0:31:30 >
# 12 Re: Flash Background.
Nice try, but thanks for even trying to follow the asks of the original poster ...
Dr. Script at 2007-11-8 0:32:28 >