views:

363

answers:

0

Hey,

I'am making an Expandable banner in flash. When you move your mouse over the smalle banner, it loads an author large banner. Now the problem is, that I specify in my HTML the ClickTag only for the small banner (because the large banner isn't loaded when you load the page). And when you click the banner, you click on the large banner.

Here's my code

Small Banner ActionScript (Button)

    on (rollOver)
    {
      gotoAndStop(1);
      getURL("javascript:IABshowAD()");
      loadMovie("bannerlarge.swf", _root);
    }

Large Banner ActionScript (Button)

on (rollOut) 
{  
        gotoAndStop(1);
 getURL("javascript:IABcloseAD()");
 loadMovie("bannersmall.swf", _root);
 }


on (release) 
{  
getURL(_root.clickTAG, "_blank");
}

HTML

<div id="banner"><object id="bannerFlash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="500" height="250" data="bannersmall.swf?clickTAG=../LANDING/index.htm?PROJECT1CMOMMP0910">

<param name="wmode" value="transparent">   
<param name="allowScriptAccess" value="always" />   
<param name="allowFullScreen" value="false" />  
 <param name="movie" value="bannersmall.swf?clickTAG=../LANDING/index.html?PROJECT1CMOMMP0910" />  
 <param name="quality" value="high" />   
 <param name="bgcolor" value="#ffffff" />        

 <embed src="bannersmall.swf?clickTAG=../LANDING/index.html?PROJECT1CMOMMP0910" quality="high" bgcolor="#ffffff" width="500" height="250" name="banner" wmode="transparent" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />  </object></div>

So, how do I specify the ClickTag for the large banner?

Thanks in advance, Vincent Winckelmans