Found a great blog post with an ActionScript 2 class that parses the current URL and creates accessible properties out of query string arguments:

I needed something to parse any URL, so I made a few adjustments and converted the class to be able to access query string arguments with AS3. Here’s the updated code:

Here’s an example of how to use the updated version:

It’s as simple as passing a URL with a query string and then just use the parameters object to access the specific query argument, in this case we’re accessing the page argument, which will give us a value of “articles”.

Leave a Comment