Controlling captivate movie with JavaScript

Hi,
I am trying to use Flash methods to control a captivate movie
using procedures documented in the support center article:
http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html
I am using the following code in a JavaScript:
var movie = window.document.Captivate1;
movie.StopPlay();
Captivate1 is the object ID assigned by Captivate when it
generates the HTML file. The movie does not respond to the command.
I have created my own Flash movie and the StopPlay command
works with it.
Thanks in advance for any help anybody can provide!

Captivate SWFs don't respond like other Flash movies. You can
use similar techniques, but must use some specific, legacy "control
variables" that are hanging around since the RoboDemo days:
To pause a movie, use rdcmndPause = 1;
A good place to find more details is here:
http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=27&Itemid=29

Similar Messages

  • Controlling Captivate movies from a parent Flash movie

    Hello, i am in the works of onverting my old AS2 code, for controlling Captivate movies lodaded into a Flash container, over to AS3 becasue of the transition to Captivate 5. There were some weird issues in AS2 and Captivate 3 which i fortunately vere able to solve when i first made this container. Now i am getting weird and unpredictable results when trying to set the appropriate variables in the Captivate move. The main culprit is: rdcmndRewindAndStop, it does indeed rewind the movie, but... it starts playing again... Could anyone be so kind to give me the reason why or better even provide me with a solution to this unneeded change, its quite annoying, and no rdcmndPause does not help, not before rdcmndRewindAndStop or after, the movie is happily trottling along...
    sincerely
    Frustrated developer with a bloody short deadline

    Hello and thanks for replying, yes it worked! But... we have to manually edit 40+ files to make this stupid thing to work... Do you know if there is any way i can put those scripts in a flash object, or better even modify the movie from the parent container? This is making our production process way longer than is affordable tbh, a single project consists usually of over 100 captivate movies, and we simply can't manually edit each and every one of them.
    I wish i could get my hands on a Captivate developer ;p

  • Resize and hide a movie with JavaScript Fonctions

    Hello,
    I've read your topic about JavaScript Scripting Guide for QuickTime and I want to know if there is a solution for to rezise and to hide movie with JavaScript fonctions.
    Thank in advance

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • Captivate Buttons with JavaScript

    At my place of employment, we use Adobe Captivate to create
    demonstrational tutorials for our software system. We are currently
    looking into adding a screen at the end of each of our tutorials
    that includes buttons to either watch the tutorial again ("Watch
    Again") or close the browser window ("Close This Screen")...
    Through Captivate's buttons we can easily create the "Watch
    Again" button by setting the button properties to...
    - If the user clicks on the button...
    --> On Success: Jump to Slide
    ----> Slide 1
    However, I am having some difficulties with the "Close this
    Screen" option. I currently have things set up so that the browser
    window is closed through JavaScript, which works fine. This is
    achieved through the following button properties settings...
    - If the user clicks on the button...
    --> On Success: Execute JavaScript
    ----> JavaScript:window.close();
    The only problem I'm running into is that when I click the
    "Close this Window" button in the published SWF file in an Internet
    Explorer window, I receive an IE pop-up message that says...
    "The webpage you are viewing is trying to close the window.
    Do you want to close this window?", with Yes and No options.
    If possible, I'd like to be able to bypass this message. Does
    anyone have any clue as to whether this is possible, and if so, how
    to do it through Captivate?
    On another forum (
    http://www.trap17.com/index.php/javascript-close-window_t29518.html),
    it looks like I may have found a solution, but I'm not sure how to
    format/translate the language so that Captivate can understand it
    and execute without error. My attempts thus far have been
    unsuccessful. Here is the code that I believe SHOULD work, which
    calls out a pre-defined JavaScript function...
    function NoConfirm ()
    win = top;
    win.opener = top;
    win.close ();
    JavaScript:NoConfirm();
    As I've said; however, this gives an IE error message when I
    run the output and the close function completely ceases to work.
    Again, does anyone have any ideas...?
    Thank you in advance.
    --Daniel

    One of the problems is that IE/Windows will give you a
    security warning when you try to close a browser window from
    another object. The basic rule is, a command from JavaScript to
    Javascript will close without a security warning. Therefore, you
    must place the Javascript code - a function - out in your HTML
    page. It just sits there - and then within Captivate - you call
    that function - and it executes - without an error message :) Note
    - the code below works flawlessly - but depending on your system -
    i.e. in IE - you might receive a warning for running JavaScript.
    You need to run it from a web server from a
    http:// address to make this work 100% with no
    user actions required.
    Here's the code I use:
    HTML Page (you can place this in your standard.htm file, so
    that it's placed in your HTML pages each time you publish). This
    code should be placed within the <head> </head> tags of
    your html page (you can use Notepad to edit).
    <!-- Javascript below called from Captivate to close the
    browser window.
    Code created by
    http://www.kcwebplaza.com/captivate
    -->
    <script type="text/JavaScript">
    <!--
    if(window.parent!=window)
    window.close = function()
    window.parent.close();
    //-->
    </script>
    Captivate Movie
    In your Captivate button properties, select On Success >
    Execute Javascript. Click the ... button, and place this inside the
    dialog:
    window.close()
    Good luck!
    Todd

  • C# control event handling with javascript

    How can I get javascript to execute for "onchange" / "OnSelectedIndexChanged" event instead of a CodeBehind method? I think "OnSelectedIndexChanged" event has to be handled by CodeBehind; but how can I replace that (or onchange) with
    a javascript event handler?
    I have the following in my xyz.ascx file:
    <asp:DropDownList ID="ddlTypeCar" CssClass="BatsRefAddressTypes" runat="server"
                      onchange="javascript: testAlert();"
                      OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged"
                      AutoPostBack="True" />
    I could not get the javascript to execute, even though I removed OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged" and/or set AutoPostBack="false".
    Additionally, I tried added the following in xyz.ascx.cs Page_Load() method.
    ddlTypeOfAddress.Attributes.Add("onchange", "javascript: testAlert();");
    which didn't help.
    Thanks for your help in advance.

    Hi,
    you can control client events instead of server events with javascript
    look this url for more information
    http://www.w3schools.com/js/js_events.asp
    Regards

  • Is it possible to access an object inside a Captivate movie from Javascript?

    For example, my JavaScript performs some processing, based on which a particular button inside the movie needs to be hidden. Can I access a particular button from JavaScript to be able to do this? If not, then is it possible to be notified inside the Captivate movie, when a variable has been set by JavaScript?  I notice that the JavaScript interface in Captivate 8 provides an event (CPAPI_VARIABLEVALUECHANGED) which fires when the value of a variable inside the Captivate movie changes. If there was a similar event which would fire inside the Captivate movie, when a variable changes then I could have set a variable using JavaScript and hidden a particular button using an advanced action, when the event for that variable changing fires inside the Captivate movie.
    Articulate Storyline has an event which gets triggered when the value of a variable changes (either because of JavaScript executing or otherwise). If something similar was possible in Captivate, it would open up many possibilities.
    I am evaluating Captivate 8.
    Thanks in advance for any help.

    hi
    Yes. its possible but its not recom
    you can set in production system to allow changes to obj rsa1->transport connection->click 'object changeability', and look for object type , and set to changeable.
    pls refer these below posts
    transport a query backwards, from production to development
    Re: Transporting Process Chains from Production DOWN to QA and Dev
    assign points if useful.....
    Shreya

  • Controlling Flash timeline with Javascript

    I have a project I'm taking over from a Flash designer. The
    way he created the project isn't the way I would have done it, and
    I'm trying to salvage what is there. My question: Is it possible to
    control the timeline of an .swf from Javascript?
    Basically, the movie has four different sections, each noted
    with a frame label. I'd like to be able to have the user click on a
    text link in HTML, and using javascript, load the movie in a new
    window, and immediately go to the frame label specified.
    Is this possible?

    Yes, Flash and Javascript can communicate. I would try using
    the toolkit from
    http://weblogs.macromedia.com/flashjavascript/

  • Controlling QT Movie with Chapters in KN 3.0.1

    Has anyone experimented with QT movies that have chapter markers in KN 3.0.1?
    We would like to be able to select the various chapters of a given QT movie while it is playing in a KN show - ideally with the pull down menu that appears in the controls area of a QT movie (or something like it), presumably on the "operator" screen (i.e. not visible on the projected "show" screen)
    I am aware this may be a tall order but even if we had the ability to just jump to the next chapter heading in the movie that would still be quite helpful.
    I am aware that I could just cut the QT into separate movies and put them on individual slides but that would not edit from one video section to the next as instantaneously as simply jumping to the next chapter marker (whether by just using the "tab" key or something similar or by actually pulling down on a chapter menu somewhere on the presenter's screen.)
    While I'm at it, shouldn't there be an easier (more Mac-like) way of putting chapters in a QT movie. The procedure outlined on the Mac site is at best cumbersome and seems to be a bit buggy and is certainly overly involved for something that should be an intuitive point-and-click kind of operation. I have also tried the premaid applescripts for this purpose but was unable to get them to work. May well be my screw-up but like I said, the prospect of adding a couple of chapter markers to a QT should take seconds and be done from a pull-down in QT Pro - I can't understand why it's so complicated.
    Much Thanks.

    I started to answer a while back and safari crashed so I gave up.
    There's no way to get Keynote to see the chapters, but to answer your other question...
    try this:
    http://www.feelorium.com/
    I think their Textation app lets you add chapter tracks.
    I usually use Final Cut Pro to make chapters, then once I've run my final DV movie through compression those get stripped out. A few simple steps and you can graft the chapter file from your original DV file into the web versions (we do this every week at my church).

  • Change Movie with JavaScript

    Hi,
    I have a Flash Media Server that is serving about 10
    different video clips on demand. I have player that's embedded into
    a web page which streams one of those clips. I'd like to be able to
    click on a button and have Javascript interact with the player so
    it loads and streams a new movie based on parameters passed to it.
    My movie loads using the AC_FL_RunContent() class in
    AC_RunActiveContent.js which was generated when I published my .swf
    file for the web.
    How can I use Javascript to access those parameters so that
    when a user clicks a button the player gets updated with a
    different stream from the server?
    Thanks in advance for the advice, kind words and heckles for
    the newbie.
    Jon

    Hi,
    Try this.
    this.assist.toolTip.value = "Hi from Avoka";
    Regards
    Philip

  • Controling a Gallery With Javascript

    I would like to use a Boolean array to control the images in a gallery.  Each index in the array would correlate to a specific image, which would not appear in the gallery if array[i] == false, but the image would appear if array[i] == true.
    I could use some help with controlling the gallery.  Is there a way to do the following?
        Access a specific slide at an index via javascript.
        Get the number of slides in the gallery via javascript.
        Add/remove slides to/from the gallery via javascript.
        Set the image path for a given slide via javascript.
    It seemed to me like such information should be here:
    https://developer.apple.com/library/iad/documentation/iAdJS/Reference/iAP.Galler yViewClassRef/iAP/iAP.html#//apple_ref/doc/uid/TP40010655
    However, I think I must be missing something.  If anyone could point me in the right direction, I would appretiate it!
    Thanks,
    Robbie

    Hmmm....Did you double-click on the cell and drop in the image object or just lay it on top.  It's gotta be inside the cell so it's included in the serialization.  Not sure what else it could be.
    Code for the page that works for me is:
    this.milestones = [];
    this.onViewControllerViewWillAppear = function (event) {
              // Code here for the "View Will Appear" event.
        // path to my server
        var webservicePath = "http://localhost/myfeed.json";
        // asynchronously load the webservice
        var xmlLoader = new iAd.XHRLoader(webservicePath);
        xmlLoader.delegate = this;
        xmlLoader.load();
    // Called when the XHR call failed
    this.loaderDidFail = function ( loader, error ){
        alert("Load failed with error: " + error);
    // Called when the XHR call was successful
    this.loaderDidComplete = function (loader){
        var galleryView = this.outlets.timelineGalleryView;
        galleryView.dataSource = this;
        // grab and store the content returned
        var json = loader.content;   
        var jsonObj = JSON.parse(json);
        this.milestones = jsonObj.timeline.milestones;
        // store an archived copy of the prototype cell
        this.archivedPrototypeCell = iAd.Archiver.archive(galleryView.cellAtIndex(0));
        // tell the gallery to update itself
        galleryView.reloadData();
    this.cellAtIndexInContainer = function(container, index) {
        // create a new instance of the prototype cell
        var newView = iAd.Archiver.restoreFromArchive(this.archivedPrototypeCell);
        // event data at the index
        var milestone = this.milestones[index];
        // get the path to the event image
        var imagePath = milestone.image || '';
        // create an image object and assign to the image property of the imageView
        newView.subviews[3].image = iAd.Image.imageForURL(imagePath, false);
        // set the text values
        newView.subviews[0].text = milestone.date || '';
        newView.subviews[2].text = milestone.title || '';
        newView.subviews[4].text = milestone.description || '';
        return newView;
    this.numberOfCellsInContainer = function(container) {
        return this.milestones.length;
    and the cell hierarchy looks like this:
    -M

  • Controlling multiple movies with one button

    Hi flash gurus,
    I have 4 movies of the same length running on my stage in the
    FLV playback component, with different instance names. I also have
    a single play/pause component. I want all of the movies to play
    together and unpause/pause when I press the play/pause button.
    However, I have only been able to get the play/pause button to
    control one of the movies (the last one listed in the
    actionscript). I'm using the following code to attach the
    play/pause component to the FLV playback movie:
    FLV_instance_name1.playPauseButton = PlayPause_instance_name
    FLV_instance_name2.playPauseButton = PlayPause_instance_name
    FLV_instance_name3.playPauseButton = PlayPause_instance_name
    FLV_instance_name4.playPauseButton = PlayPause_instance_name
    When I use this, the play/pause button only controls the
    FLV_instance_name4 movie. How do I get it to control all 4 moives?
    Any help is much appreciated. Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • Playing different flash movies with Javascript

    I've been researching this on the web to no avail so I figured I would post.
    I am developing a homepage similar to http://www.extractable.com/
    I have several different areas of text, which when you hover over them, I would like a different flash movie to play.  I have created this using pictures (example of one piece of the code is below), but want to increase the flashyness with, well, flash
          if (obj.id =="txtHolderPrograms")
          document.getElementById("imgLargePicture").style.filter="blendTrans(duration=.5)";
          document.getElementById("imgLargePicture").filters.blendTrans(duration=.5).Apply();
          document.getElementById("imgLargePicture").src = "PMDO.png";
          document.getElementById("imgLargePicture").filters.blendTrans(duration=.5).Play();
          document.getElementById("imgLargePictureHREF").href = "XXXXXXXXXXXX";
    I have a div where I want the different movies to play in.  What is the best way to get the different flash files?  Keep in mind that extractable site is doing just about exactly what I want to do.
    Any help would be greatly appreciated!

    I can't tell how you have things set up between the title of your posting and what you say to explain the problem.  What are you calling pages?  How do the pageselate to the 2 flash file in the doc you mention?

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • Question about controlling embed quicktime object with javascript

    Hello,
    I am using javascript to control an embedded quicktime object on my website a la http://www.protofunc.com/2008/02/01/controlling-embedded-video-with-javascript-p art-i-quicktime/ .
    The problem I am having is with the movie.Stop() command. When I hit the pause button on the generic controller, it freezes the current frame. When I call the Stop() command, the movie goes white until it is resumed. Does the pause button do anything more than call "Stop()"?
    Thanks,
    Nick

    any luck with this? i am thinking of trying protofunc.
    fyi:
    i switched from SWF files to QuickTime H264, and have been trying to use the QuickTime/File/Save For Web feature on my movie promo web site.. all the movies play choppy on computers (desktops and laptops), but the technique works well on iPhones and iPads.. it is a bit unfair, IMHO, that apple can make trailers work so smooth on trailers.apple.com, but using their technology does not seem to work for "the rest of us"..
    any web sites other than apple that can help?

  • Captivate movie clips looping in Flash

    I've read the discussions on the forum, but nothing seems to
    be able to stop a captivate 2 movie clip from looping when brought
    into Flash. I exported the captivate movie with the default values,
    converted it to a movie clip in Flash8 so I could resize it,
    brought the movie clip into the Flash movie by dragging it to the
    stage. Everything looks great, but I can't stop the clip from
    looping. Stop commands placed within the movie clip seem to have no
    effect nor do commands put on the main timeline.
    Thanks for the help.

    Hi there
    Hopefully someone here will have an answer for you. In the meantime you might also wish to post this question in the forums for Acrobat.
    Click here to visit the Acrobat forums
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

Maybe you are looking for