Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help Needed With My Embedded Flash File

Featured Replies

Hi All,

 

I'm hoping someone can give me a hand with this problem.

 

I'm embedding a flash swf file into my HTML using Dreamweaver, which all works fine.

But I want an image, text or even another media file to butt up against the flash movie.

 

For some reason an invisible 4px gap appears between the flash and the image.

I've tried removing the borders, margins and padding from around both the embed and object TAGs but so far nothing has worked.

 

I've ran a few tests with different flash swf files, changing the publishing settings and nothing seems to get rid of the invisible border, which seems to appear at the right and bottom of the flash file.

 

If anyone has a solution or feedback, that would be great.

 

Cheers

JD

Can you post a link or html/css?

 

Anyway don't use DW to embed flash. It generates a fat and ugly js. Use swfobject instead. It's not only valid and a lot cleaner but also removes the annoying border from your movie in IE (normally you need to click on the movie to activate it first)

  • Author

Here's the HTML code:-

 

--------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Advert</title>
<link href="gulfaircss/gulfair_hb.css" rel="stylesheet" type="text/css" />
<script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<div><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','473','height','170','title','flashbanner','class','nopadding','src','banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','banner','wmode','opaque' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="473" height="170" title="flashbanner">
<param name="movie" value="banner.swf" />
<param name="quality" value="high" />
<embed src="banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="473" height="170"></embed></object></noscript><img src="images/logo.gif" alt="Dubia" />
</div>
</body>
</html>

-------------------

 

Cheers for the blog link. I've also read on another blog that the best technique for adding flash to websites is to to use 'Flash Satay'. Is this worth looking into?

  • Author

PROBLEM SOLVED !!!

 

If I add the flash object and the image to separate DIVs and then float them the gap disappears !

 

Thanks for your help and for the tip on not using the automatic drop-in in Dreamweaver.

 

:)

Next time just post your problem in one thread, rather than creating two threads for the same problem, it may fit in two sections but only post it in one

 

 

thanks smile.gif

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.