flash - Get Current Browser URL - ActionScript 3 -


I'm trying to get the current browser URL. I have already tried with an external call, and it is not working. And with loaderInfo.url, I get the current SWF URL.

Let it go one:

import flash.external ExternalInterface; Var url: string = external interface. Call ("window.location.href.toString"); If (url) textfield.text = url;

should do the trick.


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -