Solved

Detect browser address in flash?

Posted on 2004-04-08
2
178 Views
Last Modified: 2010-04-03
Is it possible to detect what the browser address is, and then use this address in flash to redirect to a specific scene?

1) I got a web page with a flash movie.
2) The web page is reloaded when clicking on a specific scene in the movie.
this to display html data using a querystring.

Now I would like the flash to keep the same scene when the page is reloaded.
This by using the querystring in the browser address.

Is this possible?
0
Comment
Question by:Tobbe070599
2 Comments
 
LVL 9

Accepted Solution

by:
krishnaprathab earned 250 total points
ID: 10790440
Hi,

 Supposing you have a movieclip on your stage named my_mc the action my_mc._url gives the URL from which it is loading. Check out the example under getURL in :

http://s6.invisionfree.com/flashmx/index.php?showtopic=3

Hope this helps !

Thanks,
KP
0
 
LVL 2

Expert Comment

by:hansblix
ID: 10796038
_root._url will give your the address of the frame that the swf is in..
If the frame isn't the "parent" fram, then you will have to either use javascript to communicate the information to Flash or alternatively use a placeholder swf in the parent frame and use localConnection to pass on the information.

-h
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now