-
[F8][Help] Detect current URL
Hi,
what is the way to detect in flash the current url it is playing from?
(not the path of the swf, but the url of the current page)
for example, i want to be able to do this:
trace("the page is " + currentPage);
the result should be: the page is http://www.mysite.com/currentpage.html
I know it can be done by using something like this:
window.location
But I don't know how to make it work.
Thanks!
P.S. I only need for simple urls (with no query strings).
Last edited by SnailsAnimation; 10-15-2008 at 08:11 PM.
-
I don't need the answer anymore I've found another way to do what I wanted to do -- Without knowing the url of the page.
-
Flashmatics
its always helpful to post back your solutions..that way it may benefit others in the future .. cheers
-
Senior Member
well in my footer is a link on how to do it two different ways..
using .swf object and one using javaScript.
but Im glad you figured it out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|