[MX] loadMovie - swfLiveconnect

wazup people!

I need an urgent help!!!

I need do load an JPG dynamically. The URL is variable pase by Javascript.

So… I have do create de variable in the JS e send it fo Flash.

I’m getting this variable already. Using swfLiveconnect, and in the javascript the method SetVariable(var,value);

I’m changing de value of the var. I can chage textfields, but the method loadMovie isn’t working, by putting de URL param as the variable I get from javascript.

Could you help me?

Here goes the code I’m using:

HTML

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>

<script language=“JavaScript” type=“text/javascript”>
var Url = “01.jpg”;

function loadJpg()
{
Url = “01.jpg”;
document.myMov.SetVariable(“location”,Url);
setTimeout(loadJpg,1*1);
}
</script>

</head>

<body>

<object id=“myMov” classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“550” height=“400”>
<param name=“movie” value=“zoom_component.swf”>
<param name=“quality” value=“high”>
<embed name=“myMov” swfLiveconnect=“true” src=“zoom_component.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“550” height=“400”></embed></object>

</body>
</html>

FLASH

getURL(“javascript:loadJpg()”);
loadMovie(location,mcComp.mcImg.mcTarget);

Thanks!!!