Categorized | Flash Tutorials

Moving From Flash AS2 to Flash AS3: getURL

What ever happened to getURL within Actionscript 3.0?

If you wanted to create a link to another website in Actionscript 2.0, here’s what it would have looked like:

The command getURL used to a be very easy way to create an outbound link within Flash. This one line of code code easily fitted perfectly within a button onRelease event. Not so easy anymore.
Snapshot of AS3 Code

Along with many other easy Actionscript 2.0 calls, getUrl has changed. It uses a couple more lines of code and has changed to navigateToURL. You might be asking why would the amount of lines increase for such a simple task. Craig Campbell just recently posted an in depth example and explanation to creating outbound links within Actionscript 3.0.

Source: School of Flash

    So what's next?

  • Share this Post:

  • Subscribe to Flash Speaks Actionscript
  • Leave a Comment

1 Comments For This Post

  1. Reyco1 Says:

    Hi, I myself am writing an AS2 to AS3 series which already has 6 parts. My first part had to exactly with this very same topic!

    http://www.reynaldocolumna.com/blog/archives/category/flash/as2-to-as3-baby-steps-series/page/2

Leave a Reply

  • Popular
  • Latest
  • Comments
  • Tags
  • Subscribe