Using swf file in html seamlessly?

  • Soren
  • Born
  • Born
  • Soren
  • Posts: 1
  • Loc: Melbourne

Post 3+ Months Ago

:shock:

Howdy.

Just having a bit of a problem with an swf file that Ive
inserted into and HTML layout.

The swf flashes up white and then plays the movie,
which is a black fade into a photo...

So it looks like it flashs white, then fades.....

But only does this the first time the swf is loaded....

Any ideas on how to prevent this?

You can see the issue at http://www.buronorth.com/profile.htm

Cheers
Soren
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

what the problem is, is that the new swf isn't loaded before you call on
it. By default, flash uses a white bg for loading new movies - which is
what you are seeing.

one small workaround you can try is to set the swf's default bg color
within the html tag itself.

For the object tag:
Code: [ Select ]
<param name="bgcolor" value="#333333">

For the embed tag:
Code: [ Select ]
bgcolor="#333333


just slip those in and it should help.

Here's a full example of how it should look:
Code: [ Select ]
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
 id="bigwebmaster_sign" width="150" height="80">
 <param name="movie" value="flashMovie.swf">
 <param name="quality" value="high">
 <param name="menu" value="false">
 [color=red]<param name="bgcolor" value="#000000">[/color]
 <embed name="bigwebmaster_sign" src="flashMovie.swf" quality="high" [color=red]bgcolor="#000000"[/color] menu="false"
  width="150" height="80"
  type="application/x-shockwave-flash"
  pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
 </embed>
</object>
  1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  2.  codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
  3.  id="bigwebmaster_sign" width="150" height="80">
  4.  <param name="movie" value="flashMovie.swf">
  5.  <param name="quality" value="high">
  6.  <param name="menu" value="false">
  7.  [color=red]<param name="bgcolor" value="#000000">[/color]
  8.  <embed name="bigwebmaster_sign" src="flashMovie.swf" quality="high" [color=red]bgcolor="#000000"[/color] menu="false"
  9.   width="150" height="80"
  10.   type="application/x-shockwave-flash"
  11.   pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  12.  </embed>
  13. </object>

doing this is an easy quick fix, but I would recommend using a preloader
so the whole flash movie loads before playing. You can search ozzu for
quite a few questions, answers, and tutorial links on preloaders.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 22 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.