Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : White flash prior to flash movie loading


Mediacon
5/13/2004 10:04:37 PM
I'm a total newbie to Flash. I'm just starting to understand some simple
things, and I've created a little text changing intro as a test. When it runs
on a test site, there is a split second of white where the movie will play-
it's an all black background in dreamweaver, and the background of the movie is
white too.

My first impression or thoughts are that I need to some how preload it (if
that's the right term). I see a lot of movies with the little "loading" bar or
text flashing. Is that what I need to do to fix this? If so, where's a good
source for learning how to do that? (or if someone wants to spill the beans and
tell me, that's fine too ;) )

Thanks-
urami_
5/14/2004 11:54:04 AM

[quoted text, click to view]


Don't worry , not a noob issue , macromedia does not really put much effort to inform user
properly about such stuff in documentation so it's excusable :)

What happens there is that the html does not know what color to give the to
space define by object embed tags so it gives white as it is the default color of flash player.
The information on the color are store on first frame of the movie so once the movie start loading
the background color is set ON.

But , using parameters in the object embed tags force it to have background color before the content
load.
All you need to do is place in your tags
(sample code color only #FFF99)

<PARAM NAME=bgcolor VALUE=#FFFF99>
and
<EMBED bgcolor=#FFFF99

Best to use the File - Publish Setting feature in flash.

If publish from there , flash automatically while generating the html with
all the tags , will place the color of authoring fla as default color of the tags.


Sample on complete object/embed tags :


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
WIDTH="200" HEIGHT="500" id="flash" ALIGN="">
<PARAM NAME=movie VALUE="flash.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFF99>
<EMBED src="flash.swf" loop=false menu=false quality=high bgcolor=#FFFF99
WIDTH="200" HEIGHT="500" NAME="flash" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>



--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

Tom Unger
5/14/2004 9:42:55 PM
Mediacon;
If you use flash's publish feature to generate your html, it will
automatically add a bgcolor parameter to your object embed tags which match
the background color set for your movie/document. Try publishing html and
swf from flash and look at the resulting html source code. You could also
add it in Dreamweaver, or a text editor if you prefer. -Tom Unger

Mediacon
5/15/2004 12:11:27 AM
Thanks for the reply. You're a little bit over my head on the skill level. Is
this done in Flash, or in dreamweaver? You mentioned some of the settings in
the publish settings, but I wasn't able to quite put the pieces together.

Can you be a little simpler? (like me)

Thanks if you can, and thanks if you can't. You're given me some things to
look at and learn.


Mediacon
5/15/2004 10:50:18 PM
Excellent! Thanks- now I totally understand the 1st response.

Cool- thanks guys.
Steve
AddThis Social Bookmark Button