0

Hi,

I'm not quite sure which Forum I should be writing about ActionScript in but can someone help me with this:

I have a client that created a banner for our company and the ActionScript always receives a error message once live on the web...

The Error code was Error#1009 - which refers to a Button Click...

Here is the script of embedded code she gave me.

// ActionScript 3.0 
/* Requires * - Button symbol on Stage with instance name "myButton" */
myButton.addEventListener(MouseEvent.CLICK, buttonSymbol_click);
function buttonSymbol_click(evt:MouseEvent):void {
var clickTAG:String = loaderInfo.parameters.clickTAG;
// Check for malicious code injections, only use URLs if they begin with http: or https:
if ((clickTAG.substr(0, 5) == "http:") || (clickTAG.substr(0, 6) == "https:"))
{ 
var req:URLRequest = new URLRequest(clickTAG);
navigateToURL(req, "_blank");
}


}

Pleas advise!

Thanks
-programmer12

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by adarsha_saraff
0

Did you created banner for adds purpose??. Why do you want to check for http & https. Dose it take URLs as input from users??

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.