Reputation: 5119
How can you get and set the hash or anchor part of an URL in pure Actionscript? When googling for a solution I've found explainations for doing it using JavaScript, but is it possible to get it without using JavaScript? (I'm using Actionscript 2, I may consider updating the code to AS 3, but it doesn't seem to be a quite straight forward process.)
Upvotes: 2
Views: 1903
Reputation: 15845
If you ever make it to actionscript3 you could use the com.adobe.net.URI class. It exposes a URI::fragment getter/setter which looks to be exactly what you need.
Upvotes: -1
Reputation: 27045
What you want is SWFAdress, it's a small library that let's you modify that part of the url from flash (via a javascript)
Upvotes: 5