Advertisement

07.01.2008 at 10:27AM PDT, ID: 23530982
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.2

Flash - JavaScript communication not working

Asked by scotru in Macromedia Flash, JavaScript, ActionScript

Tags: ,

I've been asked to customize a Flash Quiz system we have in order to make it go to a new web page upon complete of the quiz.  I can get the flash to open a new window, but I need it to go the new page within the existing window or the opener window.  For some reason, nothing I try works.  Here are various samples of things I've tried in the action script (domain references replaced with domain.com for privacy):

  // via getURL
    getURL ("http://domain.com/new/quiz_return.php");
    getURL ("javascript:window.opener.location.href='http://domain.com/new/quiz_return.php';");
    getURL ("javascript:window.location.href='http://domain.com/new/quiz_return.php';");
    getURL ("javascript: load('http://domain.com/new/quiz_return.php', window.opener);");
    getURL ("javascript: load('http://domain.com/new/quiz_return.php', top.opener);");
    getURL ("http://domain.com/new/closer.html","_self");
 
   // via the Flash-JavaScript Integration library
   import JavaScriptProxy;
   var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);
   proxy.call("alert(\"Test 2!\");");
   proxy.call("load('http://domain.com/new/quiz_return.php', top.opener);");

None of this works, but this does:
    getURL ("http://domain.com","_blank");

I've tried different things in the wrapper page too.  Here's what it looks like now:


            
      
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 
<title>Title</title>
<script type="text/javascript" src="JavaScriptFlashGateway.js"></script>
 
<script language="text/javascript"><!--
function load(file,target) {
    alert("Test");
    if (target != ')
        target.window.location.href = file;
    else
        window.location.href = file;
}
 
//--></script>
 
</head>
<body bgcolor="#676767" marginwidth=0 marginheight=0 topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0>
<center>
<script type="text/javascript">
    var uid = new Date().getTime();
    var flashProxy = new FlashProxy(uid, "JavaScriptFlashGateway.swf" );
    var tag = new FlashTag("http://domain.com/new/quiz/swf/quizshock.swf?game_session_id=190&game_key=3896bd3078e44d7ffbde0c566b5d7569&trivia_site=http%3A%2F%2Fdomain.com%2Fnew%2Fquiz%2Fquiz.php&game_skin=http%3A%2F%2Fdomain.com%2Fnew%2Fquiz%2Fswf%2Fskins%2Fskin.swf", "600", "400"); 
    tag.setFlashvars("lcId="+uid);
    tag.write(document);
 
</script>
 
</center>
 
</body>
</html>
[+][-]07.01.2008 at 10:54AM PDT, ID: 21909994

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 10:56AM PDT, ID: 21910010

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 01:21PM PDT, ID: 21911260

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 01:23PM PDT, ID: 21911288

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 01:28PM PDT, ID: 21911317

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 01:48PM PDT, ID: 21911497

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:40PM PDT, ID: 21911865

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:14AM PDT, ID: 21923327

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 05:58AM PDT, ID: 21924952

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:43AM PDT, ID: 21926585

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 11:34PM PDT, ID: 21943031

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 12:52PM PDT, ID: 21957510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 11:14PM PDT, ID: 21960954

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:38AM PDT, ID: 21966213

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Flash, JavaScript, ActionScript
Tags: Adobe, Flash
Sign Up Now!
Solution Provided By: scotru
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.09.2008 at 10:39AM PDT, ID: 21966237

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628