Skip to main content
Inspiring
February 12, 2007
Question

How to tell Flash that Captivate is paused ?

  • February 12, 2007
  • 3 replies
  • 410 views
Hi everyone, Nathalie from France, using Captivate 1.
(Sorry i can't find where to post this problem except here !)

I'm playing a captivate swf in a flash swf file container, using Flash' loadmovie. Everything is going properly, except this :
I want the student to keep its own pace, so at each captivate slide i placed a button that pauses the film, waiting for the student's action.
ok BUT this action will be, not a clic in the captivate, but a clic on a navigation bar that is situated in the flash container.

On the "Next" button of this navigation bar, i put a code that either go next slide, either resumes the film, depending on the paused-or-not state of the film (still there ? :)

Now you reached the real question : how can Flash know that the loaded captivate is paused or not ?

I used this : if (pathToMyCaptivateFilm.rdcmndPause ==1) {pathToMyCaptivateFilm.rdcmndResume = 1 ;}

But no success. When i trace "pathToMyCaptivateFilm.rdcmndPause", it appears to be zero, not 1, still the film is paused by the captivate button.
Could you help please ?
    This topic has been closed for replies.

    3 replies

    natworkAuthor
    Inspiring
    February 20, 2007
    Thank you Rick, i created a post in the Flash forum.

    Thank you jiminiCricket, no doubt you know what i'm talking about ;)
    But you are luckier than me, for what i forgot to say is that i must use the 6th version of Flash, MX ! Therefore i can't import the .cp in Flash, because that would request the 7th version, MX2004. That is why i use the loadmovie.
    But true, I could customize the captivate control so that it looks like my flash control, so that the student won't get confused (magic !). It would be easy, because my flash control's backgroung is plain white (no transparency to manage).
    Considering "coded" solutions, I'll let you know when i get the Mx2004 licence !
    Nat.
    Known Participant
    February 20, 2007
    Hi Nathalie,

    Ok - finally worked this out but I'm not sure if this will work for you. First you need to resize your captivate (assuming you have Cap 2 here). Have a look at Ricks instructions here:

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=470&threadid=1235204&enterthread=y

    (It's the 4th entry).

    Then I placed an image of the background bottom section into the Captivate (to replicate the background of the container) and put the playback controller in that bottom section. When I publish it I get 2 files, the main and the skin. I put them both into my loadmovie action script and with a bit of messing around with the positioning of my layers (to ensure that the playback is displayed AND the other buttons I have there are still working), I have a working solution.

    Let me know if this helps or if you're really stuck contact me and I'll see if I can help you out (I really have lost all my hair over this one so I know what it's like).

    Cheers

    AJ (JiminiCricket)
    Known Participant
    February 20, 2007
    Hi Natwork,

    I've been trying to do something very similar but in Cap2 and came up with the same problem. There are a couple of solutions that kind of work.

    First one is import the .cp into Flash movieclip, you can then control it to your hearts content using standard actionscript. I have a pause/play, fast forward/rewind and progress (percentage complete) indicator. This works fine unless you want to have more than one Captivate in the same Flash container. Then you get conflicts and unpredictable results. Trust me, I sent a good few hours last night battling this!

    I then opted for the loadmovie approach but am completely unable to control it from flash. In the end I decided to use a Captivate play bar with only play, pause, fast forward and rewind on it. This works but doesn't put the play bar in the flash container.

    My next attempt will be to resize the movie and put the play bar underneath it and then try and force the movie background to be transparent (not sure if I can do this). I remember someone (could be Rick) posted a solution to doing this on the forums so am digging at the moment to try this.

    Let me know if you want the code for the percentage counter or more detailed instructions (and limitations) of importing Captivate into Flash.

    Cheers

    JiminiCricket
    natworkAuthor
    Inspiring
    February 16, 2007
    not a single answer ?
    Captiv8r
    Legend
    February 16, 2007
    Hi natwork

    I'm guessing the dearth of response to this is an indicator that you are among very few folks that are attempting to pull Captivate content into Flash and do what you are trying to do.

    Have you tried posting the same question to the Flash forum? If not, maybe you will see better response there.

    Sorry... Rick