Skip to main content
Participant
September 24, 2020
Question

Click to Go to Web Page - Access of Undefined Property Window

  • September 24, 2020
  • 2 replies
  • 276 views

Forgive me if this is a stupid question with an easy answer.

 

All I’m trying to do is link a button to a webpage using HTML5. The code snippet is attached, I’ve not even changing it yet. For the Record, ‘Use Advanced Layers’ is turned off.

 

The code hasn’t changed:

this.button_1.addEventListener("click", fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage() {
	window.open("http://www.adobe.com", "_blank");
}

 

I’m still getting the ‘Access of Undefined Property Window’ message when I export.

 

What am I doing wrong?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    September 24, 2020

    Hi.

     

    You seem to be working with an AS3 document. Please convert your document to HTML5 Canvas and let us know if it will work.

     

    Regards,

    JC

    Legend
    September 24, 2020

    Uh, "Access of undefined property" is an ActionScript error.