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 ? !!!