Solved

Detect browser address in flash?

Posted on 2004-04-08
2
177 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

760 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

23 Experts available now in Live!

Get 1:1 Help Now