Avatar of jneal0331
jneal0331
 asked on

Using Actionscript or Javascript to unload movie using Captivate 5.5

I have an application an agency built that houses my training videos (created with Captivate 5.5). Now users can click to start a video and then immediately close it and the application shows that they viewed/completed the entire movie. I need to find a way for Captivate to send a call (or something) to the application telling it that the movie has finished.

 

I do not know much Actionscript or Javascript but I am a fast learner. I read in past posts where this was accomplished in Captivate 2.0 and 3.0 by

 

1) coping the captivate movie into Flash and adding two lines of code (Actionscript)

 

import flash.external.Externalinterface;

External Interface.addCallback("unload", this, unloanSQF);

 

2) the following would be added to the HTML page

 

//Detect Flash container movie
function getFlashMovie(movieName) {
   if (navigator.appName.indexOf("Microsoft") != -1) {
      return window[movieName];
   }
   else {
      return document[movieName];
   }
}

//Function to be called by Captivate
function captivateUnload() {
   //Calls "unload" method established in ExternalInterface Actionscript code
   getFlashMovie("simpleSwfLoader").unload();
}

 

3) Add the Javascript call captivateUnload() to the Captivate button.

 

 

 

I am hoping that the procedure has gotten better with 5.5; plus I do not want to use a button. I want the unload event to occur automatically when the movie ends. Plus, I can't see how to produce a fla version to be imported and edited in flash.

Any help or direction would greatly appreciated.

 Thank you, Jim
Adobe FlashWeb Development

Avatar of undefined
Last Comment
CyanBlue

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dgofman

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jneal0331

ASKER
just to clarify, I can include this javascript as written that will call "callJsUnloan"

<BODY  onUnload="function( flashMovieObject.callJsUnload() )">

Thanks!
CyanBlue

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck