Is there a class in AS3 that tells you the type of the URL protocol?

88 Views Asked by At

Is there a class in AS3 or Flex that tells you the type of protocol a URI or URL is part of? I was sure there was a class that broke a URL into various parts and grouped it into usable data.

For example, if the URL is, "mailTo" it would return "mail" protocol. Or if the URL is "http://www.google.com" it would return "url" protocol. Something along those lines.

1

There are 1 best solutions below

0
On BEST ANSWER

You can use URLUtil in the Flex library.