Link Details

Link 101589 thumbnail
User 281268 avatar

By minidxer
via ntt.cc
Published: Aug 07 2008 / 12:35

Once I need to get the host, protocol, port, parameters from a given URL with Action-Script. I googled for a class named HTTPUtil developed by members of flexpasta.com, and got some tips about URLUtil of Flex SDK. However, HTTPUtil is used to resolve information from the URL of the page the SWF file embed in. URLUtil is useful, but a little complex. I need a simple method to resolve a given URL, and use the resolved information directly without extra processing. Solution Summary: I( www.ntt.cc ) decide to write a class named URLParser myself to satisfy my requirement using regular expression of action-script.
  • 6
  • 0
  • 1236
  • 197

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (0)