Swfobject adding a link not working

Hi all I have added in this line

flashvars.targetURL = "http://www.mydomain.com/aff/index.php";

to try and get a link on my flash animation. I use swf object. Everything works until I put the targetURL code in. How can I make it work? Thank you

<script type="text/javascript" src="/js/swfobject.js"></script>
		<script type="text/javascript">
			var flashvars = {};
		var attributes = {};
			var params = {
			  allowfullscreen: "true"
			 flashvars.targetURL = "http://www.mydomain.com/aff/index.php";

			swfobject.embedSWF("/flash/smallpeq.swf", "myContent", "200", "110", "","expressInstall.swf", flashvars, params, attributes);

Did you make the movie or do you have the source? why not add it within the movie itself?

you can access just about anything you need outside of the movie from within it if you need it to be dynamic


ImALink.onRelease=function(){ getURL("yourtargeturl"); }

Thanks I’ll do that

Can you not preview alternative content within the <object> tag, from SWFObject without completely removing flash ?