Solved

Detect browser address in flash?

Posted on 2004-04-08
2
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

627 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