I wanted to pass the location of a .png file as an external variable from a html page into the swf file by using the loadMovie method, but instead of embeding the location right into the swf, i’ll retrieve it from an external variable. The theory should work but i just can’t get it to work.
Here’s the flash code:
[AS]
_root.attachMovie(“background”, “bg”, 1);
bg.loadMovie(bgfile);
bg._x = (xOffset);
bg._y = (yOffset);
[/AS]
**Here’s the html code:
**
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>v0.6.8</title>
</head>
<body bgcolor="#cccccc">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600" id="v0.6.8" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="v0.6.8.swf?bgfile=backgrounds/Background-Road.png" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="v0.6.8.swf?bgfile=backgrounds/Background-Road.png" quality="high" bgcolor="#cccccc" width="800" height="600" name="v0.6.8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>