Skip navigation
Gayatri Biswas
Currently Being Moderated

Exit buttons in Presenter

Jul 24, 2012 2:51 AM

I created an exit button to close a webpage at the end of an Adobe Presenter course using; javascript:window.close() and pubished it. On inserting the .swf file and publishing the Presenter file the exit button does not work.

Using: Captivate 5, Presenter 7.0.6

 
Replies
  • Jorma Jennings
    1,850 posts
    Jul 5, 2007
    Currently Being Moderated
    Jul 24, 2012 10:20 AM   in reply to Gayatri Biswas

    Upgrade to Presenter 7.0.7.

     

    The installer can be found here: http://www.adobe.com/support/downloads/product.jsp?product=153&platfor m=Windows

     

    Captivate is an AS3 product and Presenter 7.0.6 is an AS2 product. The two scripting languages are not compatible with each other, so Captivate 5 SWF files will not work in Presenter 7.0.6 or earlier. If you upgrade to 7.0.7 or Presenter 8, your Captivate 5 SWFs should work.

     

    Instructions for upgrading from 7.0.6 to 7.0.7 can be found here (as it is not the most intuitive process): http://helpx.adobe.com/presenter/kb/upgrade-presenter-7-0-7.html

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 4:27 PM   in reply to Jorma Jennings

    I'd be surprised if anything were to change by upgrading. Closing the browser window is always fraught with issues. We see the same thing with Captivate. Whether or not you can reliably close the browser window all depends on how it was opened to begin with.

     

    I'd suggest you perform a brief Google search of "Close window using JavaScript" and look at how many millions of hits you will find.

     

    Cheers... Rick

     
    |
    Mark as:
  • Jorma Jennings
    1,850 posts
    Jul 5, 2007
    Currently Being Moderated
    Jul 26, 2012 9:31 AM   in reply to Captiv8r

    Good point Rick.

     

    The method for closing browsers with JS varies between the browsers and may or may not work based on the settings the individual has on their browser. It has a better chance of working when using the correct version of AS, but it is not a guarantee.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 8:29 AM   in reply to Gayatri Biswas

    There are solutions available.  While not all browsers allow you to close a window without handles; you can close IE (for example) and then attempt to close other browers.  If they don't close within a reasonable period of time (e.g. one or two seconds) you can redirects your users to another page (e.g. either your website; or a simple document with instructions to the learner to close the browser using the X).

     

    I do NOT recommend using Flash files with embedded "window.close()" or the like.  This will only work if the page that is opened is a simple page and not contained within a frameset (where you might need "parent.close()" or "top.close()", etc).  You'd have to edit your Flash file each time to make this work, if it works at all.  I recommend creating a Flash file that contains a reference to an actual function you create, such as "closeBrowser".  Then you create that function in the HTM file that contains the Flash-based files and you can easily modify that.

     

    I discussed this issue and originally developed some certificates or quit buttons for AS2-based Presenter and Captivate files in an article on Connect Users: http://www.connectusers.com/tutorials/2009/02/certificates/

     

    I have to update my articles (in my spare time) for AS3-based articles.  However, you could easily create a Flash-based button that calls ExternalInterface.call('closeBrowser'); or something similar.  The code you'd want to include in your HTM file is found here:  http://www.connectusers.com/tutorials/2009/02/certificates/JSCodeForHT MLTemplates.txt

     

    The function to call from Flash is:  closeBrowser

     

    -Andrew

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points