What event fires when a captivate ends?

Hello,
I'm a web app developer and I'm working with Captivate. I'm not a captivate designer myself, just a programmer, so I don't know the first thing about Captivate (though I'm working with someone who does). I'm wonder if there's an event that fires when the captivate is done--that is, when the user clicks on the "submit" button on the last slide after which there is nothing more for the captivate to do.
My friend the Captivate designer says the submit button is wired up to an event handler in the CPM.js file. The script is named "assessment_Pass" and we've located the event handler in CPM.js. However, I can't work with this. I can't manually manipulate minimized javascript that Captivate generates, especially when we've got hundreds of captivate files and keep getting updated. I need to work in the javascript in my Visual Studios project. If I could know what event fires (if an event fires) when the captivate is done, I can then wire it up to a javascript event handler in my development environment.
I found this list of Captivate events (they're actually for the Captivate API Interface, which I'd prefer to work with, but any event will do), but none of the one's I tried seem to fire.
Any help is much appreciated.

[quote="elearning_dude"]Events are exposed only for interactive objects (buttons, button smartshapes, etc.) and ON_SLIDE_ENTER and ON_SLIDE_EXIT (the latter of which actually fires on the first frame of the *following* slide, unless it's been fixed in Cp8). [/quote]
Well, it's a submit button on the captivate that's supposed to fire the event. Is that an interactive object?
[quote="TLCMediaDesign"]Maybe if you explained what you are trying to accomplish I could point you in the right direction. Maybe you could use the CPAPI_MOVIESTOP or CPAPI_VARIABLEVALUECHANGED events and check if on the last slide.[/quote]
I would like to know when the captivate ends (i.e. when the user has gone through all the slides and has clicked the submit button) and to do some processing in javascript afterwards (essentially, calculate the user's score and figure out whether they passed or failed).
I'm trying the CPAPI_VARIABLEVALUECHANGED event on a captivate variable called "result". My friend the Captivate designer says that when the user clicks the last submit button, a script is run to change the value of this variable. When it changes, this event should be fired and I should be able to catch it, no?
I'm doing it like this:
_captivateWindow.cpAPIEventEmitter.addEventListener("CPAPI_VARIABLEVALUECHANGED", "result", ResultChanged);
var ResultChanged = function()
alert("hello");
but I'm not getting my hello message.
I will try the timer idea that andreleal suggested and get back to you.

Similar Messages

  • What event fires when user "leaves" TextInput?

    I need to perform some calculations on data that the user is inputting into several text inputs.  I want to perform the calculations whenever the user leaves any of the TextInputs.  The user could leaves the TextInput by tabbing out of the box or clicking out of the box.  What event fires whenthe users leaves the TextInput boxes?
    Thanks!

    focusOut
    Dispatched after a display object loses focus. This happens when a user highlights a different object with a pointing device or keyboard navigation.

  • What event fires when form focus comes back to calling form

    Hi,
    I need to capture the event when form focus comes back to calling form.
    I am using KFF in my custom form and want to perform a set activities when users presses "Cancel" button of KFF instead of "OK" button.
    I guess KFF screen is an another form which is being called from my custom form.
    Regards,
    Kuldeep

    I posted my question here and got answer
    Re: Event to capture when form focus comes back to calling form
    Edited by: rawat75 on Feb 6, 2013 12:54 AM

  • Which Business Event fires when candidate applies for a vacancy?

    Can somebody please confirm the workflow business event which fires when a candidate applies for a vacancy?
    Is there an easy way of finding this out or some doco which mentioned what events are called when?
    Thanks.

    Hi Shruti,
    Theoretically speaking you can edit the workflow process and achieve your objective (Using Workflow Builder) by designing what triggers to be fired once the AutoCreate Configuration Item completes.
    See if the following docs give you any hints:
    Oracle Order Management Using Oracle Workflow in Oracle Order Management
    AutoCreating Configuration Items and Final Assembly Orders (Oracle Bills of Material Help)
    AutoCreate Configuration Items (Oracle Bills of Material Help)
    Thanks &
    Best Regards,

  • Will "Value change" events fire when changed via ActiveX?

    I have a VI with an Event Structure defining several Value Changed events. These events are associated with various buttons on the control panel. When I work through the panel and press the buttons, the events fire correctly. However, if I connect via the COM/ActiveX control and change the control values, the button indicator light changes, but the Value Change event does not fire. Can we trigger value changed events remotely or must they be triggered via a mouse-click on the button?

    Hi Cyle,
    Please take a look at the document below. It explains why the events are not being fired.
    Event Structure Does Not Capture the Value Changed Event for Indicator Wired to Iteration Terminal
    I hope this helps.
    Sincerely,
    Feroz
    National Instruments

  • Do any events fire when the Flash Player exits?

    Hey all.
    I use a LocalConnection object to prevent being able to run our SWF multiple times on the same computer.
    The problem is that this connection can remain in place even when the SWF which called it closes. 
    I have:
    1) An External Interface call to dispose() all HTML pages call dispose() on pageunload which closes the connection.... But this is unreliable because if the browser crashes, you are locked out of the SWF
    2) I tried some crazy try/catch.  If SWF A exists and SWF B tries to be initialised.... SWFB cannot connect so it sends a function to SWFA to dispose(). This should free the connection for SWFB to connect to?  But this does not work well either because sometimes a localconnection can be in use but calling "dipose()" throws an error, often because the LocalConnection swf which should be available is already gone.
    What this all comes down to, is that I need a way to detect when the player closes, so i can close the localconnection.
    stage.addEventListener(Event.EXIT, onExit);
    function onExit(e:Event): void
             if (localconnection)
                    localconnection.close();
    Does anything like this exist?
    Thanks,

    Thanks for taking the time to answer kglad!
    I should have been clearer it is a Web App, so your answer remains valid.
    I have not completely followed you on your advice.. When you say "So it only prevents another swf from running if something is returned from a currently running swf".
    Could you expand on that? I am desperate to fix the issue, but it just seems localconnection is not the best method for "single swf execution". I just have not found any other methods.
    Thanks.

  • What trigger fires when a new record is requested?

    I'm trying to clear out a detail block when the user hits the button to enter a new record and cannot figure out what trigger to use or how to clear this block.
    This is a very old application and I don't even know what forms version it is in...
    Thanks, Scott

    If you don't even know the version, how can you modify the form at all?
    Check the code in the on-clear-details trigger if the form is a normal master-detail form. Clearing the detail block should be done automatically. From the manual:
    "Form Builder creates the On-Clear-Details trigger automatically when a Master/Detail block relation is defined. "
    If the form was created with its own logic to synchronize master and detail, you first have to figure out how that was done. Look for key-down, key-up, key-nxtrec etc.

  • What event does FMS server fire when a clients starts/stops streaming

    I want to log activities on my stream (both live and recorded) using a web service I've made. In the FMS server side AS3 documentation I can find events for onconnect/ondisconnect, but that is not quite what I want. What I want is and event that fires when a user start viewing a stream, or stops viewing.  Today I'm using the following code:
    application.onConnect = function(client)
              client.getStreamLength = function( streamName ) {
                        LogStart('', this.id, this.ip, streamName);
                        return Stream.length( streamName );
       this.acceptConnection(client);
    However not all clients uses the getStreamLength, so this does not realy work. The problem is that in the "onConnect" even I do not have access to the streamname, else I think I could have used this event.
    Thanks in advance

    Hi Wujemurray,
    If you'd be so kind as to email me offlist we'll get a support incident opened for this and can get to the bottom of the issue you're facing.
    Asa
    [email protected]

  • I can't be the only person who has this problem - when a month ends on a Saturday I can't drag events into the next month and instead have to cut and paste - a real pain in the butt. I thought there was something called "scroll" but I can't find that

    I can't be the only person who has this problem with iCal- when a month ends on a Saturday I can't drag events into the next month and instead have to cut and paste - a real pain in the butt. I thought there was something called "scroll" but I can't find that.

    Yeah that works, but, it involves a click on the event, a click on edit, a click on the date, keystrokes, plus, since you can't see the next month you have to have a calendar in front of you so as to put it to the right date. It's easier just to cut it and advance the month and paste it, once you are in the right month you can move it around helter skelter willy nilly no problems. Although now that you mention it I will try it, maybe it is easier than cut and paste as I don't really care about the date, as long as it gets moved into the right month I can drag it around all I want.

  • What business event executes when a Party is updated

    Hi,
    What business event executes when a Party is updated ?
    I tried with
    oracle.apps.ar.hz.Organization.update
    oracle.apps.ar.hz.CustomerProfile.update
    None of these seems triggering when Party information is updated example: Customer Profile, Customer Name itself.
    Thanks
    Saikrishna

    Please see if (Customers Workbench: No Business Event Firing When Activating/Inactivating An Account Contact (Doc ID 1553927.1)) helps.
    Thanks,
    Hussein

  • What event is fired when

    Hi Everyone,
    I have a page that is displayed using
    CompleteAuditController *screen = [[CompleteAuditController alloc] initWithNibName:@"CompleteAuditWindow" bundle:nil];
    screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:screen animated:YES];
    [screen release];
    So when this is done on the CompleteAuditWindow page
    [self dismissModalViewControllerAnimated:YES];
    What event (if any) is fired on the caller page??
    in essence, I need to know when this page become the active page on the stack.
    Thank you
    take care
    tony

    Both [viewWillAppear:|http://developer.apple.com/iphone/library/documentation/UIKit/ Reference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/viewWillAppear:] and [viewDidAppear:|http://developer.apple.com/iphone/library/documentation/UIKit/R eference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/viewDidAppear:] should be sent to the parent controller object. - Ray

  • Accordion load event does not fire when accordion and load event created dynamically using actionsript

    I cannot get the accordion load event to fire when I have
    created the accordion and load event using actionscript . Here is
    some sample code:
    createClassObject(mx.containers.Accordion, "acc",
    getNextHighestDepth());
    acc.createSegment(mx.containers.ScrollPane, "sc1", "Number
    One");
    acc.createSegment(mx.containers.ScrollPane, "sc2", "Number
    Two");
    var accLis=new Object();
    accLis.load=function(evtObj) {
    trace("load");
    accLis.change=function(evtObj) {
    trace("change");
    acc.addEventListener("load", accLis);
    acc.addEventListener("change", accLis);
    I made sure to add the ScrollPane and Accordion components
    to my library. So the load event does not fire, but the change
    event does fire. And through further testing the other events do
    not fire, including the draw event. Can anyone help? The only time
    I can get the load event to fire on an accordion is if I put an
    accordion on stage, select it and add the actionscript to the
    objects actions like shown below:
    on(load) {
    trace("load");
    on(draw) {
    trace("draw");
    Can somebody help? Unfortunately I must create all my
    components dynamically. Thank you in advance.

    I'm having this issue also...but only apparently with Internet Explorer and only on some machines...ideas?

  • Is there any event in windows universal app (wp8.1&win8.1) that fires when screen locked and unlocked with in the app?

    Hi All,
    Is there any event in windows universal app (wp8.1&win8.1) that fires when screen locked and unlocked with in the app
    Right now, I am using this below mentioned event
    Window.Current.VisibilityChanged +=
    CurrentWindow_VisibilityChanged;, but it fires even when app relaunches.
    Please anybody help me to solve this issue.

    Thanks for your early reply. but, those are system triggers used in background task. I want an event that fires when screen gets locked. like this...(a networkstatuschangedevent)
    NetworkStatusChangedEventHandler
    networkStatusCallback =
    newNetworkStatusChangedEventHandler(OnNetworkStatusChange);

  • What Event is Triggered When a Title Window is Shown?

    I am creating the Title Window Component once, and then
    showing it with PopUpManager.addPopUp, and hiding it with
    PopUpManager.removePopUp. I need to run some logic each time the
    PopUp is shown. However, I can't figure out what Event is triggered
    when the TitleWindow is "opened". The window is there, it's just
    not being displayed. This make me think that "show" would be
    triggered, but it is not. I also tried "add", but this threw a RTE.
    Any thoughts?
    Thanks.

    Since I couldn't find an Event to trigger, I am instead using
    an override of protected function commitProperties() to run my
    logic.

  • What event tells me when any data changes in a mx:datagrid?

    I have a mx:datagrid that I need to have an event tell me when anything at all changes in the datagrid. The datagrid can be empty and as such may not have a dataprovider (=null) some of the time. I have looked at a variety of events but none seem to do what i want - can anyone suggest what event i should be listening for please?
    many thanks,
    Mark.

    We have not formalized the concept of nested collections in Flex.  However,
    let me amend my recommendation a bit.
    Typically in a nested collection, the objects in the top-level collection
    are not just collections but an object with some other reference data and
    then a collection like:
        public class FamilyTreeItem
            public var name:String;
            public var children:ArrayCollection;
    The top-level collection is listening for propertyChange events.  Typically,
    as a data item gets modified, a propertyChange event is dispatched.  If the
    data items do not dispatch propertyChange events, then the itemUpdated()
    method is used.  Either way, the result is a COLLECTION_CHANGE event from
    the top-level collection.
    When you have a nested ArrayCollection, while that sub-ArrayCollection is
    dispatching COLLECTION_CHANGE, nobody is listening for it at the top-level.
    You can dispatch it yourself, or you can call itemUpdated() on the top-level
    or dispatch a propertyChange.
    The latter will be the most work, but most general.  Code in FamilyTreeItem
    would attach a listener to the collection for COLLECTION_CHANGE and then
    dispatch a propertyChange as appropriate.

Maybe you are looking for