# Flash HTML javascript help!

**URL:** <https://forum.kirupa.com/t/flash-html-javascript-help/328866>\
**Category:** Uncategorized\
**Created:** [June 26, 2012, 6:18am UTC](https://forum.kirupa.com/t/flash-html-javascript-help/328866 "2012-06-26T06:18:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthic\_vkn](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@karthic\_vkn](https://forum.kirupa.com/u/karthic_vkn)\
**Post date:** [June 26, 2012, 6:18am UTC](https://forum.kirupa.com/t/flash-html-javascript-help/328866/1 "2012-06-26T06:18:25Z")

</div>

Hi All,

I made a flash which is having couple of images inside. I want to show the clicked image on a HTML. For that I want to send the image name to the HTML. Also that html must not have menubar, toolbar and statusbar (only image needs to be there).

Here I have done something…

btnClipMc.addEventListener(MouseEvent.CLICK,onBtnClicked);

var address:String = (“two.html”);  
var URL\_var:URLVariables = new URLVariables();

function onBtnClicked(evt:MouseEvent):void  
{  
URL\_var.query = inpTxt.text;  
var jscommand:String = “window.open(’” + address + “’,‘win’,‘toolbar=no,scrollbars=no,location=no,status=no,menubar=no’) ;”;  
urlReq:URLRequest = new URLRequest(“javascript:” + jscommand + " void(0);");  
urlReq.data = URL\_var;  
navigateToURL(urlReq, “\_self”);  
}

This is showing error message when I include “urlReq.data = URL\_var” line.

Can you help me to correct this script ? !!!
