Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

SWF Interaction With Popups

Posted on 2006-04-09
4
Medium Priority
?
272 Views
Last Modified: 2013-11-19
I have a music track in an swf file that's called upon to play by the site's main swf upon entering my site.  The site contains a couple of getURL("","_blank"); links that cause off-site pages, with their own music tracks, to open in new windows.  (I have no access to the scripting of these other sites.)  Upon opening such a new window, the new Web site's music track starts, and my site's track stops.

I don't need to know the method at this time, but might it be possible to cause my site's music track to start playing again upon closing the new site's popup window, thus returing focus to my site's window?
0
Comment
Question by:Jonathan Greenberg
  • 3
4 Comments
 
LVL 1

Expert Comment

by:peteSK
ID: 16427727
Yes - but it will be tricky, as you will have to use javascript.

The general technique (not specific so dont worry), would be to store a reference to the popup windows you open - and then periodicaly check they are still open.  If they are closed, your javascript can send a message to your flash movie to tell it to play its tune again.

You can excpet to encounter some issues getting this to work with all browsers though

0
 

Author Comment

by:Jonathan Greenberg
ID: 16430283
Thank you, pete.  Now that I know it can be done, are you able to provide some JavaScript (even a rough example would suffice) that would do this?  (Please be assured that, whether you are able or not, I will still award the points for answering.)
0
 
LVL 1

Accepted Solution

by:
peteSK earned 1500 total points
ID: 16430474
its basicaly this.

set a timer to check periodicaly
http://www.pageresource.com/jscript/jtimeout.htm

check your windows still open
http://www.webreference.com/js/tutorial1/exist.html

if it is not then tell flash
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15683
0
 
LVL 1

Expert Comment

by:peteSK
ID: 16434017
Let us know if you get into problems during the development with specific issues.

good luck.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

578 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