The Xara code doesn't work with Flash 10.
Here's a workaround:
Design your webpage with Xara. Make a rectangle the same size as your Flash piece. Use Name Gallery to name the rectangle SWF-PLACEHOLDER ... then position the rectangle on the webpage design, exactly where you want the Flash piece to be.
Export the design as an HTML webpage.
Open the webpage in a text editor.
Now, what we will do is insert some real Flash code just before the end of Xara's DIV ... /DIV tags.
You'll see a DIV ID = "XR" tag. Put the following html code just before the closing /DIV tag:
Code:
<div id="flashinsert" style= "position:absolute; left:234px; top:36px;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="417" height="323" ID="test1">
<param name="movie" value="test1.swf">
<param name="quality" value="high">
<param name="loop" value="0">
<embed src="test1.swf" width="417" height="323" loop="0" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>
</div>
Notice that the start of the new DIV section picks up the Left and Top settings that Xara generated for the Placeholder rectangle.
The complete webpage code now looks something like this:
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" xml:lang="en" lang="en">
<head>
<meta name="XAR pngs" content="3"/>
<title>mtest1b</title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/>
<meta name="Generator" content="Xara HTML filter v.1.0.7.277"/>
<!--[if lt IE 7]><script defer type="text/javascript" src="mtest1b.htm_files/png.js"></script><![endif]-->
<script language="JavaScript" type="text/javascript">
<!--
function rx(){var ww=window.innerWidth;if(!ww){ww=document.documentElement.clientWidth;};
dx=(ww-parseInt(xr.style.width))/2;i=-parseInt(xr.style.width)/2;if(dx<0){i-=dx;dx=0;};xr.style.marginLeft=i+"px";};
window.onresize=rx;
--> </script>
<link rel="stylesheet" type="text/css" href="mtest1b.htm_files/default.css" /></head>
<body style="" onload="rx()">
<div id="xr" style="width: 840px; height: 600px; position:absolute; top:0px; left:50%; margin-left: -420px; clip: rect(0px 840px 600px 0px);"><script type="text/javascript">var xr=document.getElementById("xr")</script>
<img src="mtest1b.htm_files/0.png" border="0" alt="" style="left: 0px; top: 0px; width: 843px; height: 600px; position: absolute;"/><img src="mtest1b.htm_files/1.png" border="0" alt="" style="left: 39px; top: 35px; width: 176px; height: 63px; position: absolute;"/><a name="SWF-PLACEHOLDER" ><img src="mtest1b.htm_files/2.png" border="0" alt="" style="left: 234px; top: 36px; width: 418px; height: 324px; position: absolute;"/></a>
<div id="flashinsert" style= "position:absolute; left:234px; top:36px;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="417" height="323" ID="test1">
<param name="movie" value="test1.swf">
<param name="quality" value="high">
<param name="loop" value="0">
<embed src="test1.swf" width="417" height="323" loop="0" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>
</div>
</div>
</body>
</html>
Print this out and you'll see how the new DIV is nested within the Xara-made DIV. Easy enough to do... until Xara updates to handle Flash 10.
Try it out -- make a 417 wide by 323 high TEST1.SWF -- and run the new HTML code.
Bookmarks