banner in flash with a jpg behind

  • buzzbuzz
  • Graduate
  • Graduate
  • User avatar
  • Posts: 161

Post 3+ Months Ago

let me explain. i want to make a flash banner. i am not sure what users will have flash on their machine or not. i want people to see the flash banner if they have flash or see the gif version if they dont. do i need to have a flash detection script inside dreamweaver (or flash maybe) to display either the flash or gif or can i have the main src to be the swf file and the low src to be the gif?

whats the best way of going about it. the flash document is 140 * 200
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You need a Flash detection script.

I believe Macromedias Flash Detection Kit provides a method for replacing it with an animated .gif.

http://www.macromedia.com/software/flas ... ction_kit/

I've never used it, but I'm pretty sure it does because the kirupa.com tutorial for Flash MX detection goes over the method and takes the example from the flash detection kit from macromedia. But of course that is out of date and I don't know if any changes need to be made other than
Code: [ Select ]
var MM_contentVersion = 6;
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Place an IMG tag for the image inside the OBJECT tag, modern browsers will ignore the SWF & load the image in the absence of a Flash plugin. If there is a plugin they will ignore the image.

Code: [ Select ]
<object......
 <embed....</embed>
   <img src="fallback.gif" />
</object>
  1. <object......
  2.  <embed....</embed>
  3.    <img src="fallback.gif" />
  4. </object>

I believe it works on the same concept as Mozila looking to the EMBED if an OBJECT isn't formated in a way it understands.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

I read about that method here...

http://www.alistapart.com/articles/flashsatay/

I always wondered if that worked for all browsers or not.... but never had to motivation to research it...still don't really...lol.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

lol Either do I Lostinbeta.
joebert wrote:
modern browsers


All I can really say is it's been working for me :P
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

LOL. Everyone should be using modern browsers by now!
  • buzzbuzz
  • Graduate
  • Graduate
  • User avatar
  • Posts: 161

Post 3+ Months Ago

so what u are saying is that i dont need a detection script at all. just embed the flash file as normal with the inclusion of the image tag for the image. the browser will either take one of the other. it will either show the swf animation or it will show the gif file but not both
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

yep.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 10 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.