Topic: Embedding a viewer into Dreamweaver CS3 page

I have created an AutoViewer-Pro file in a subfolder of my website. My intention is to embed the generated .swf file into a Dreamweaver page. However, when -- in Dreamweaver, I "Insert>Media>Flash" and insert the file "autoviewer.swf" file from the subfolder in my site, the file will not play properly. I get a grey box the size of my swf file, but no images appear when previewed -- I just get a grey box with the right hand arrow (that does not work). 

I have tried to post the file to my website staging area and I get the same visual result.

I generated my autoviewer-pro file using Photoshop CS3 Scripts.

Thanks in advance for your reply.

Re: Embedding a viewer into Dreamweaver CS3 page

Using Dreamweaver to embed flash is bad, edit the html and use SWFObject. I know this example is for simpleviewer, but it's basically the same just change the var fo = new SWFObject("viewer.swf", "viewer", "800", "600", "8", "#181818"); line to match your file name and settings.

http://www.simpleviewer.net/simpleviewe … /embedded/

Mike Richards
SimpleViewer Support Team.

Re: Embedding a viewer into Dreamweaver CS3 page

Hi Miker,

I met the same problem as mottopia, i follow your instructions and change the line

var fo = new SWFObject("viewer.swf", "viewer", "800", "600", "8", "#000000");

to

var fo = new SWFObject("autoviewer.swf", "viewer", "800", "600", "8", "#000000");

"autoviewer.swf" is the file generated by the Photoshop CS3's script that i download on your website. Now i can see images it's really cool, but the only problem is that i only can see the box but not my page around, it's completely white but my background page is black... Can you have a look to my 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>
<link rel="icon" type="image/png" href="/favicon.png" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>MCB | Realisation - Colmar</title>

<link href="style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="swfobject.js"></script>


</head>

<body>
<div class="blank50"></div>

<div align="center" class="logo"><a href="index.html"><img src="logo.png" width="auto" height="auto" /></a></div>

<div class="blank100"></div>

<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>   
    <script type="text/javascript">
        var fo = new SWFObject("autoviewer.swf", "viewer", "800", "600", "8", "#000000");
        fo.write("flashcontent");   
    </script>


<div class="blank50"></div>
</body>
</html>


What's the problem?

Re: Embedding a viewer into Dreamweaver CS3 page

Please post your URL

Mike Richards
SimpleViewer Support Team.

Re: Embedding a viewer into Dreamweaver CS3 page

http://marionconstructionbois.com/galle … olmar.html

Re: Embedding a viewer into Dreamweaver CS3 page

It's okay i found a solution,

i'm using the div

<div style="position: absolute; width: 465px; height: 164px; z-index: 1; left: 238px; top: 379px" id="layer1">

around the embed flash div. Now i just have to found how to scale it correctly