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

New Here ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

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?

Views

57

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

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

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

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

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines