Skip navigation
Currently Being Moderated

Preloading a published captivate recording to flash AS2

Mar 16, 2010 1:06 AM

Hi,

 

I have a video recording made in adobe captivate 4 and disabled the preloader on the publish preferences. The reason why I disabled this is because other people cannot see the preloader while the captivate movie is loading but the preloader displays when I view it online usign my computer (Do you have any idea on how I can fix this?). As an alternative/workaround I created a movieclip loader class and load the external captivate movie in flash. The preloader that I created works. However, the captivate movie plays at once even if the movieclip loader hasn't reached 100%. How can I prevent the captivate movie to play while the preloader isn't 100%? I also get an error on flash while simulating download in flash. The error says:

 

Branching::script:;;
deepak branching : scripteval:[object Object];

 

When I get that error, that is the time that the captivate movie plays. Below is my code in flash it is in AS2.

 

var linking:MovieClip = _root;
var level2 = linking.attachMovie("captivateHolder", "captivateHolder", this.getNextHighestDepth());

 

var loader:MovieClipLoader = new MovieClipLoader();
loader.loadClip("captivate/prequalified_contractors.swf", level2.captivateMovie);

var preload:Object = new Object();
loader.addListener(preload);

preload.onLoadStart = function(target){
  trace("Started Loading");
}

preload.onLoadProgress = function (target, loadedBytes, totalBytes){
  level2.captivatePreloader.text = Math.floor((loadedBytes/totalBytes)*100)+"%";
  level2.captivateMovie.rdcmndNextSlide = 0;
}

preload.onLoadComplete = function(target){

  level2.captivatePreloader.text = " ";
  level2.captivateMovie.rdcmndNextSlide = 1;
}

 

I tried to restrict the captivate movie from playing by putting rdcmndNextSlide = 0;

My question is, how can I restrict the captivate movie from playing while the event is still on the onLoadProgress and make it play once the preloader reaches 100%.

 

This is the first time that I used adobe captivate 4.

 

Thank you.

 

Regards,

Harry

 
Replies
  • Currently Being Moderated
    Mar 18, 2010 1:45 AM   in reply to curlybub

    You could pause the Captivate project when you start to preload it by using the Captivate system variables. Then when your file has been loaded 100% you could resume it again by using a different system variable.

     

    You can see a list of the various system variables here: http://www.cpguru.com/2009/04/28/system-variables-in-captivate-4-%e2%8 0%93-a-complete-list/

     

    The relevant variables for you would be:

     

    rdcmndPause = 1; (to pause the project)

    rdcmndResume = 1; (to resume playback)

     

    Naturally you need the instancename (where you load your Captivate movie into) infront of the variable name.

     

    myLoaderContainer.rdcmndPause = 1;

     

    /Michael


    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2010 1:15 AM   in reply to curlybub

    Hi Harry,

     

    Yeah it's kinda strange with these variables the way they work but you do need to use both of them. The rdcmndPause = 1 will pause the project. Setting it to zero again will not unpause it. Therefore you need the rdcmndResume = 1 to resume playback.

     

    /Michael


    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2010 2:36 AM   in reply to curlybub

    I don't think there is an easy way to detect if the Captivate movie is playing or not, but I could be wrong. I don't know of any variable that will show it

    .

    I think you could get around it by using the RdinfoCurrentFrame variable to check for the current frame and then recheck after a small delay and see if the first value is lower than the second value. That would indicate that the Captivate movie is playing.

     

    As for re-enabling the scrubber that is not possible. If you use the directions on my blog then that means that you are deleting the event handler for the scrubber and there is no way to reinstate that once it has been deleted.

     

    A workaround could be to insert a blank slide of 1 second as your first slide. Then set the variable cpCmndShowPlaybar to 0 on that slide - that can be done directly in Captivate - slide properties. On slide 2 (which is where your actual content is) then reset the variable to 1 and the playbar would show.

     

    Hope this helps.

     

    /Michael


    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2010 1:03 AM   in reply to curlybub

    Thanks you very much

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 2:41 PM   in reply to bvvhv

    Evet bende katılıyorum benim sitemde http://www.oyungator.com da da flash oyunlar var swf oynatırken hata veriyor

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 18, 2012 4:32 AM   in reply to Khendal

    Bazen düzgün çalışıyor ama zaman zaman hata verdiği oluyor.OYUNOYNA buraya girip adobe flash playerinizi test edebilirsiniz.www.oyun04.com

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2012 1:16 PM   in reply to oyun04.com

    Thank you for any information that I did on my oyun oyna applications

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 14, 2013 11:06 PM   in reply to perikizinet

    Bazen benim sitemde de hatalar oluyor ancak sebebini bir türlü çözemedim. Oyun oyna

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 16, 2013 12:42 PM   in reply to oyun04.com

    You ca flash player test sites:araba oyunları

    Sitenizde flash playeri test etmek için bu siteyi ziyaret edebilirsiniz.araba oyunları

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 30, 2013 3:27 AM   in reply to arabaoyunlari

    Thanks. Its so helpful Oyun oyna

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points