# \[MX\] loadMovie - swfLiveconnect

**URL:** https://forum.kirupa.com/t/mx-loadmovie-swfliveconnect/103174
**Category:** Uncategorized
**Created:** [March 2, 2004, 6:47pm UTC](https://forum.kirupa.com/t/mx-loadmovie-swfliveconnect/103174 "2004-03-02T18:47:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![M\_C\_B](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@M\_C\_B](https://forum.kirupa.com/u/M_C_B)
#### Post date: [March 2, 2004, 6:47pm UTC](https://forum.kirupa.com/t/mx-loadmovie-swfliveconnect/103174/1 "2004-03-02T18:47:46Z")

</div>

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](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](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!!!
