Why isn't the code for this button to go to web page working?

Why isn't the code for this button to go to web page working?

I'm working Adobe Animate and I've been looking for a solution to this issue, but haven't been able to find anything. I'm new to coding in general, but have some experience.

I'm working Adobe Animate and I've been looking for a solution to this issue, but haven't been able to find anything. I'm new to coding in general, but have some experience.

What I'm trying to do is have a button link to a website and all the code I've been able to find hasn't been able to make it work. All I need it to do is function by clicking the button and it go to the page in a new tab. I tried the code snippet and got an error, but I've resolved that now and the button won't work.

See the code below.

function btn1Click(evt:MouseEvent):void {

var url:String = "https://www.discovergreece.com/en/wellness-and-spas";

var req:URLRequest = new URLRequest(url);

navigateToURL(req);

}

Any assistance is appricated.

flask

What's new in Bootstrap 5 and when Bootstrap 5 release date?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

Download a Flask template ready to plug in your business logic

Let’s assume after lots of hard work you have your machine learning model running the way it should. This model could be one which responds to a user’s request to classify a tweet sentiment or identify objects in an image or recommend a product or...

Python Flask-Mail Library to Send Emails in Browser Using Flask Full Project For Beginners

Python Flask-Mail Library to Send Emails in Browser Using Flask Full Project For Beginners #python #flask #flaskmail Welcome Folks My name is Gautam

Python Flask - Introduction to Flask Templates

This is our second tutorial in Python Flask, in this tutorial we are going to have Introduction to Flask Templates, so for this Flask looks for the template

Flask How to Create Routes with Flask-Classy - Code Loop

In this Flask article we are going to learn How to Create Routes with Flask-Classy, Flask-Classy is an extension that adds class-based views to Flask. so

Working with APIs using Flask, Flask-RESTPlus and Swagger UI

The article discusses about how to use Flask and Flask-RESTPlus to create APIs and then use them to send and retrieve information.