1180: Call to a Possibly Undefined Method GetURL. Actionscript 3

  • Home /
  • Blog Posts /
  • 1180: Call to a possibly undefined method getURL. Actionscript 3

Hello all actionscripters, you can’t use getURL anymore in Actionscript 3.

Below is how you should now start doing it:

var request:URLRequest = new URLRequest("/");
try { navigateToURL(request, '_blank');}
catch (e:Error) { trace("Error occurred!");}