pipwerks / Captivate-Publishing-Templates-Redux

Replacements for Adobe Captivate's Publishing Templates; cleaned, modernized, with extra functionality
http://pipwerks.com/2012/01/11/cleaning-up-adobe-captivates-scorm-publishing-template-part-1-introduction/
14 stars 2 forks source link

Suggestion: Template Method in Default.htm for cpAllSlidesLoaded ExternalInterface Call #2

Open JimLeichliter opened 12 years ago

JimLeichliter commented 12 years ago

Hi Philip,

First, thank you for your amazing work redoing these templates. The console logging and updated features are fantastic improvements. I have one minor suggestion... this is not a bug/issue.

As you probably already know, Captivate has some internal processes that dynamically generate the slides once it's fully loaded by the browser. If a Captivate Developer executes a call to cpCmndGotoSlideAndResume inside the customJavaScript() function, it may or may not work depending if the Captivate swf has finished loading all of the slides.

In the CaptivateMainTimeline.as file, you'll see a call to EI: ExternalInterface.call("cpAllSlidesLoaded");

Not too many folks know about this call and it would be awesome to have a JS template method they could use similar to the customJavaScript() template method you provided in the Default.htm file(s).

In addition to the cpAllSlidesLoaded, Captivate also calls "cpSlideLoaded" via EI when each slide has loaded. This makes for some pretty interesting possibilities. I'm sure we'll have some more JS goodness in Cp6 with HTML5 support!

Thank you for your awesome effort on this project!

Jim Leichliter

pipwerks commented 12 years ago

Good info, thanks. I'll look into incorporating cpAllSlidesLoaded. Do you know if this is specific to CP5.5, or is it also available in CP5? I haven't seen it before (but admittedly haven't looked for it).

JimLeichliter commented 12 years ago

It's in both Cp 5 and 5.5. It does not exist in Cp 4 and below. Thanks for looking into this and possibly incorporating.

Cheers!

Jim

JimLeichliter commented 12 years ago

I've confirmed cpAllSlidesLoaded() is in Cp 6 Beta as well.