Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detect browser address in flash?

Posted on 2004-04-08
2
Medium Priority
?
184 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 1000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

885 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