For You Kirupa Kats

Hi,

I have a single swf embedded in a html page inside the cell of a table. My swf has a preloader scene and then my main nav scene. My html page has a grey background color. When the page initially loads up you can briefly see a white filled box where the swf is supposed to be until the preloader kicks in and then the main page is displayed. Is this due to perhaps the table cell where the swf is embedded in not having a background color associated with it?

It’s html my freind. embedded object!
for java you will see a grey box.
remember flash and EVERYTHING is standing on html.
and it has first dibs.

Hi ryanoe,

Thanks for your input. That is what I thought it was at first as well, however, I do not see the same thing on other sites. Its got to be something else.

Here are two sites to compare.

My site -
http://www.provencemusic.com/

and - http://www.2advanced.com

When you go from 2advanced’s splash page to their flash page I don’t see any white box. It just goes straight to their dark blue flash page.

Mine you see a white box and then my gray/black flash page.

What gives?

Have you tried setting the cell color in your html?

Is your flash animaion made on a black background or did you just overlay some color using objects…?

Try putting this inside your embed argument:

bgcolor="#000000"

The key here is bgcolor=“color u want in hex”

This should fix your problem.

Try it :sure:

=V=

Hi Valor and Sureshot,

I think both of you hit on my problem. The flash background is black, so it has to be an HTML issue. I will double my code. Thanks for the comments.

Kirupa rules.

They are right about the HTML background cell. Change that color, and your problem is solved.

Another interesting method, is specifying a background image for your table cell. Then you can set the Flash file to transparent (I.E. only), in order to show the background through the flash file.

This is a great method becuase it keeps a large raster image, out of your flash file, which helps keep the flash movie file size down…

*Originally posted by andrthad *
**Hi ryanoe,

When you go from 2advanced’s splash page to their flash page I don’t see any white box. It just goes straight to their dark blue flash page.

Mine you see a white box and then my gray/black flash page.

What gives? **

You need to preload your images put this code in your head and change the image1.src to the location of your image then specify your background image in the body.

that should work.

<script language="JavaScript">
<!--
image1 = new Image();
image1.src = "images/background1.jpg";
-->
</script>

-z

*Originally posted by Majeye *
**They are right about the HTML background cell. Change that color, and your problem is solved.

Another interesting method, is specifying a background image for your table cell. Then you can set the Flash file to transparent (I.E. only), in order to show the background through the flash file.

This is a great method becuase it keeps a large raster image, out of your flash file, which helps keep the flash movie file size down… **

Dude, I didnt know that - that’s amazing. Thanks for the tip man, that could really spead up some animations for sure!

you’re welcome sureshot :stuck_out_tongue:

If anyone needs a visual aid, i will give you a link to a site in which i employ this technique…

Volkswagen Stuff.com

Happy Flashing… =)

Its unfortunate that the technique only works on IE…