Can't make my .fla clickable ... HOW DO YOU DO IT !?!


My Error was:

1120: Access of undefined property adclicker.

After I was creating a symbol and writing the following code on to the frame:

adclicker.addEventListener(MouseEvent.CLICK, callLink);

function callLink(event:MouseEvent):void
    var url:String = "javascript: document.paypalform.submit();";
    var request:URLRequest = new URLRequest(url);
    try {
    navigateToURL(request, '_self');
    } catch (e:Error) {
    trace("Error occurred!");

I had to change the INSTANCE name to “adclicker” and not only have the symbol with that name!!!

  • Choose the button -> Properties -> Instance name: “adclicker”.

Thanks for all who helped,