Skip to main content
Participant
March 16, 2016
Question

I would like to set domain restriction.

  • March 16, 2016
  • 3 replies
  • 326 views

Hello, all.

I am using the iSpring to convert pptx to swf.

But that's  feature is just converting.

I want to use another feature like adding audio, speech files and etc..

Adobe Cativate had features like that. But i can't found a restriction feature.

All converted swf files must play only on our domain(not on another domain or desktop(laptop)).

I want to know how to use restriction feature on Adobe Captivate.

Please help.

Best Regards.

    This topic has been closed for replies.

    3 replies

    TLCMediaDesign
    Inspiring
    March 16, 2016

    Drop this code somewhere in a JavaScript file in you project. Change the "yourdomain" to your domain name.

    You could put it at the bottom of the standard.js file.

    f ( window.location.href.indexOf( 'yourdomain' ) == -1 )

    {

    var win = window.open( '','_top','','true' );

      win.opener = true; 

      win.close();

    }

    RodWard
    Community Expert
    Community Expert
    March 16, 2016

    Maybe throw in an Alert box in there to inform the user about WHY the window is shutting down?

    RodWard
    Community Expert
    Community Expert
    March 16, 2016

    Captivate doesn't offer any standard way to restrict playing content according to a given domain.  You would need to get some custom JavaScripting or ActionScripting done for this to work.

    Participant
    March 16, 2016

    Can i make a actionscript? I couldn't find that feature. Where can i do on Adobe Cativate?

    TLCMediaDesign
    Inspiring
    March 17, 2016

    You can try putting the script I supplied above in a JavaScript window in Captivate and execute on enter of the first slide.

    I haven't test the ActionScript but this should work:

    import flash.external.ExternalInterface;


    var myUrl:String = ExternalInterface.call( 'window.location.href.toString' );


    if (myUrl.indexOf( 'yourDomain' ) == -1)
    {
      ExternalInterface.call( 'DoCPExit' );
    }

    Lilybiri
    Legend
    March 16, 2016

    You can set a password restriction.