The title says it all.
The pipwerks CaptivateController now includes a
Give the new
set method a spin!
Read about the CaptivateController here.
Download the CaptivateController here.
This is the greatest script ever created!! Kudos to you for a job well done!
I wanted to mention that I was using this for a presentation of mine, and had debugging enabled in my Flash Player and was getting a number of errors popping up when using your script to grab variables on a submit button.
Not a huge deal, as this is what debug mode is for and with it off the script works fine, but just wanted to mention that it was throwing up some errors 🙂
Using CP 4 and using the exact setup for set variables from JS to CP and I get no text box populated with the var… has anyone else encountered this?
@andrew I must admit I didn’t test the new ‘set’ feature on CP4 projects, I only have CP5+. I’ll see if I can dig up my old CP4 disc.
I am having some issues getting gotoSlideAndPlay to work with my project; I think it *might* have something to do with the swjobject embedding code I am using but am uncertain; Bascially I am trying to use your controller in a function:
var myMovie = CaptivateController(“Captivate”);
//Set value of userName variable inside Captivate SWF
and have the swfembed code like follows:
swfobject.embedSWF(“quiz.swf”, “Captivate”, “640”, “480”, “10”, “”, “”, bgcolor);
(and also have a bgcolor function to set the swf background color if I prefer)
@ouija i’m not sure what the issue is, but i do know your SWFObject code is malformed. The bgcolor should be a property of the
paramsobject and cannot be a string.
Should probably be
Remember also that
gotoAndPlayuses a zero-based index. Saying
gotoAndPlay(3)actually means to go to Slide 4. Do you have a 4th slide?
Update: I forgot that I modified my code to accept non-zero-based indexes, so ignore my comment about zero-based index.
Yeah, I actually changed that using the code I found in your example to embed your swf, figured it was wrong 🙂
And managed to figure out my issue with the controller, so all is well! Thanks again for such an awesome utility! Makes my life so much easier!
Sorry for all the comments, feel free to delete if you like, but it actually won’t go past the third slide at all… tried deleting them and just using normal slides and it doesn’t work.. I can’t seem to figure out what the issue is… the first 3 slides work but the remaining don’t… I’ll keep trying different things to figure out what the issue might be..
Any help is appreciated!
can’t seem to figure out what the issue is.
I am having a similar issue with gotoSlideAndPlay. It works OK for my first and second slides but nothing past that. When I try to go any further I can a gray background instead of the slide I am expecting. The timeline shows that I am in the correct place but there is not content. I thought maybe it was an issue with the SWF not being fully loaded but I have the pre-loading option in captivate set to 100% and I am working on a local machine so it should load almost instantaneously. Any help you might be able to provide would be great.
@AJ and @ouija
Don’t know what to say; CaptivateController is simply using the API made available by Captivate. The behavior you describe sounds like a Captivate bug.
Thanks for responding. That seems to make sense. Unfortunately the documentation for Captivate is so poor it is hard to find any information that might lead to a work around. In fact most Google searches I have done on Captivate come back with your site in the top 6-10 results. Do you know of any resources that might help one better understand the exposed Captivate API?
It seems that there must be some issue with the skin that I am using. I imagine that the Table of Contents interface also utilizes the same or similar method of changing slides. When I tried turning the TOC on it seemed to work fine for jumping back and fore from slides. In fact they seem to have some code in place to manage persistence. When you reload the page a dialog asks if you want to resume from where you left off. Unfortunately this feature only seems to work when the TOC is on.
@aj the API documentation doesn’t really exist, I had to scrape the CP ActionScript for clues and do many weeks of testing to see what worked and what didn’t. CP also has its own internal logic and rules, so it’s quite possible that you can’t proceed past your third slide because you’ve come up against a rule, such as no jumping past quiz slides. Unfortunately these rules are private and have not been publicized by Adobe. You’ll have to deconstruct their code to figure it out.
RE: nested functions, I like my style just fine, thank you. (My second comeback is “I just do what Crockford tells me!”)
As a commentor and the author both stated, prototype is really only helpful (from a performance point of view) if you’ll be creating many instances of your object. CaptivateController will rarely have more than a couple.
The CaptivateController source code is on GitHub if you’d like to fork and refactor.
Comments are closed.