# Passing variables from HTML to flash without using Flashvar

**URL:** https://forum.kirupa.com/t/passing-variables-from-html-to-flash-without-using-flashvar/273631
**Category:** flash
**Created:** [October 17, 2008, 8:36pm UTC](https://forum.kirupa.com/t/passing-variables-from-html-to-flash-without-using-flashvar/273631 "2008-10-17T20:36:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kpsony](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kpsony](https://forum.kirupa.com/u/kpsony)
#### Post date: [October 17, 2008, 8:36pm UTC](https://forum.kirupa.com/t/passing-variables-from-html-to-flash-without-using-flashvar/273631/1 "2008-10-17T20:36:13Z")

</div>

Im using an affiliate program that automatically generates the following html for my swf banners:

\<object 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=“120” height=“240”\>  
\<param name=“movie” target="\_blank" value=“[http://affiliate.masterbeat.com/banners/120x240\_panel3\_gay.swf?actionURL=http://affiliate.masterbeat.com/idevaffiliate.php?id=100\_0\_1\_47](http://affiliate.masterbeat.com/banners/120x240_panel3_gay.swf?actionURL=http://affiliate.masterbeat.com/idevaffiliate.php?id=100_0_1_47)”\>  
\<param name=quality value=high\>  
\<embed src=“[http://affiliate.masterbeat.com/banners/120x240\_panel3\_gay.swf?actionURL=http://affiliate.masterbeat.com/idevaffiliate.php?id=100\_0\_1\_47](http://affiliate.masterbeat.com/banners/120x240_panel3_gay.swf?actionURL=http://affiliate.masterbeat.com/idevaffiliate.php?id=100_0_1_47)” quality=high pluginspage=“[http://www.macromedia.com/shockwave/download/index.cgi?P1\_Prod\_Version=ShockwaveFlash](http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash)” type=“application/x-shockwave-flash” width=“120” height=“240”\>  
\</embed\>\</object\>

The as they gave me to use is as follows:

on (press) {  
activeLink = actionURL;  
getURL(activeLink, “\_blank”);  
}

(I know that’s not as3, but feel free to convert it to as3)  
but when I click on the banner I get an undefined error. The problem is I can change the html, so I need to find AS that will work with the html above.

I really appreciate your help!
