Flash movie controlling Captivate navigation in an Aggregator project

Hi everyone,
I have a Flash movie which shows a Continue button after an interaction is completed by the user. This functionality prevents the user from clicking through the interaction slides so there is no captivate playbar or nav available. This Continue button works fine in advancing the Captivate movie that contains the Flash movie while published as an individual captivate file. However, when I take that published captivate movie and load it into an aggregator project, the communication of the cpCmndGotoSlide variable does not function properly. I'm using the following code in the Flash movie:
// captivate access...
    var myRoot:MovieClip = MovieClip(root);
    var cptxMovie:MovieClip = MovieClip(myRoot.parent.root);
    var slide:String = cptxMovie.cpInfoCurrentSlide;   // get current slide for workaround below
// Continue button handler...
// cptxMovie.cpCmndNext = 1;  // wouldn't work at all
var theNextSlide:Number = Number(slide) + 1;       // workaround for cpCmndNext not working
cptxMovie.cpCmndGotoSlide = theNextSlide;
Is this because I'm calling the root, and the root is the outermost parent (the aggregator movie) and I need to communicate with the immediate parent of the flash movie (the submodule captivate)?
How can I access the intermediate captivate while it is in aggregator?
This is an AS3 flash and captivate and I'm using Captivate 5.
Thanks in advance!
Brian

Hi Tristan,
Thanks for the reply and the great code!
I tried it out and got the dynamic text field to display that it had found the main timeline, however, it still would not advance properly. Maybe I'm not doing something right with it. Here's how I had it:
// captivate access...
var cptxMovie:MovieClip = getParentWithProperty("cpCmndGotoSlide", this);
var slide:String = cptxMovie.cpInfoCurrentSlide;
function getParentWithProperty(propertyName:String, startFrom:DisplayObjectContainer):MovieClip {
          if (startFrom.hasOwnProperty(propertyName)) {
                    trace("Found the Captivate Main Timeline");
                    checkCode.text = "Found the Captivate Main Timeline";
                    return startFrom as MovieClip;
          else if (startFrom == stage) {
                    trace("Could not find the Captivate Main Timeline");
                    checkCode.text = "Could not find the Captivate Main Timeline";
                    return null;
          else {
                    return getParentWithProperty(propertyName, startFrom.parent);
// advance button handler...
function advance(e:Event):void {
          for (var i:uint=0; i < orangeCircleArray.length; i++) {
                    orangeCircleArray[j].removeEventListener(MouseEvent.ROLL_OVER, onRollover);
                    orangeCircleArray[j].removeEventListener(MouseEvent.ROLL_OUT, onRollout);
          var slideNum:Number = Number(slide);
          var theNextSlide:Number = slideNum + 1;
          cptxMovie.cpCmndGotoSlide = theNextSlide;
          btnContinue.removeEventListner(MouseEvent.CLICK, advance);
Thanks! Brian

Similar Messages

  • Multiple Flash Movies in Captivate 1.0

    ok, heres the problem!
    I have imported a sound control into captivate which gives me
    better savings on the audio file size rather than letting captivate
    do the compression. These controls are limited to play and pause.
    well the problem is that I forgot to add a 'rdcmndPause = 1'
    command to the pause button actionscript and a subsequent
    'rdcmndResume = 1'. So although the narration is pausing and
    playing as you would expect, unfortunetly the slides are still
    playing onwards.
    has anyone taken a stab at controlling imported flash
    animations from other movies?
    I suppose the concept is that rather than re-export all of my
    narration files across again with the additional actionscript I
    would like to be able to add a small 'widget' which checks the
    status of the sound file and acts accordingly?
    Any help would be greatly appreciated.

    It seems that when you import an external flash movie into
    Captivate 1, the full path is...
    "_level0.slide0__image_mc.s0_i9_swf_mc.m_swf_mc"
    ...this was the start of the solution for my problem so I
    thought it best to post in case it helps out anyone else.
    BTW - The slide number changes (obviously) and so does the
    'i' reference depending on the attributes you have given to your
    imported movies.

  • Flash Movie - Controlling the Movie

    I'm currently working with a flash file that has 24,000
    frames. I have been able to successfully use the Call Sprite
    commands to start and play the movie and stop the movie, but only
    from frames 1-16,000. But for some reason the movie will not play
    beyond frame 16,001. It will go to any frame using the Call Sprite
    commands after 16,000 and display that frame but the movie will not
    play. The movie is a flash 6 swf. published from Flash 8
    professional. It was originally a video converted to flash format.
    This works or any frame number between 1 and 16,000:
    CallSprite(@"chair",#gotoframe,9325)
    CallSprite(@"chair", #play)
    But the movie image stops at frame 16,001 and the sound
    continues. If I tell it to go to frame 16,100 (or any frame higher)
    It will go to that frame, display that frame (image) but will not
    play the movie/sound.
    The flash assest properties are set as Linked,preload, image,
    sound, and I've tryed every possible option.

    I would not be surprised if this was a limitation of the
    Flash sprite,
    since it only officially supports Flash 6 or earlier. I
    recall some sort
    of frame limit in older versions of Flash.
    Did you try 'not linked', so it's actually imported? Not that
    that would
    help necessarily, but maybe.
    Also maybe try the Flash ActiveX control and see if that
    works better
    for you? Though it has it's own issues and requires different
    scripting...
    Erik
    la4chuck wrote:
    > Apparently, what ever codec was used when the video was
    converted will not
    > allow me to break up the flash movie into segments in
    Flash professional.
    >
    > Is there some limit to how many frames wil play in
    authorware?
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware
    *The Blankenship Caveat: Note that direct linking to http
    content
    through any Authorware icon will likely fail if a proxy
    server is present!*

  • Captivate 7 and the Aggregator Project

    I would like to know if I can build an aggregator project consisting of 7 modules in Captivate 7. Each module has its’ own quiz. Each quiz is scored seperately and reports score to the LMS seperately.
    I tried this in Captivate 4 and 5, but could not get the individual scores to report to the LMS, only a score for a single test would report. Because my users are nurses, they have very limited amount of time available to take these courses. Currently, I build indiviual courses and post them requiring the nurses to access each course and registar seperately.  If there are 7 modules, they have to make sure they registar for all 7, take all 7, and get all 7 results posted to their transcripts for continuing education credits. If I can combine them into 1 aggregator project, but still be able to have 7 different quizzies that all report to the LMS apon completion, this would lower the amount of time that our nurses have to spend finding, registering for, and taking multiple courses in our current environment.  We can do it in Lectora, but the cost of the software and yearly license fees is very costly.  To be able to do this in Adobe Captivate would allow us to keep our costs down in software, licenses, and human capital. Any help is greatly appreciated.

    You need to build this course as a multi-SCORM package.  The Aggregator tool is not for building SCORM courses for an LMS.  Use the Adobe Multi-SCORM Packaging tool instead.

  • Need to remove flash movie controls ( skin )

    using Dreamweaver 8 - have imported an flv file into a
    standard html page and it all works great when I publish - my
    problem is DW 8 is making me choose a skin and the skins controls (
    play RW, FF, ect..) semi transparent as they are, are directly over
    some text of the movie. How do I tell DW I do not want a skin or
    that I do not want any controls?

    > DW 8 does not provide me a _no skin_ option
    That's the thing. You've identified the problem. Dw doesn't
    offer a no skin
    option for this. It is not an option.
    There is no option when importing an flv into dw to have no
    controls show.
    There isn't a choice to not have controls show if you use dw
    to import an
    flv.
    do you need any other re-wording of the basic fact?
    The message thread is kind of at the point of explaining that
    it's a an
    ex-parrot.
    If you want to ask for this to be included in dreamweaver in
    the future,
    search on the adobe.com for dreamweaver wishlist.
    If you do these operations IN FLASH instead of using the
    Import flv menu
    choice in dreamweaver, you WILL have a way to have no
    controls on the skin.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Help with multiple flash movies in same website

    I'm trying to create a website in dreamweaver. I created the
    artwork in fireworks. a slice of it i exported to flash to create
    rolling clouds over the background. i also want in the same swf
    file a screen for my main content. ( I used a scrollPane component
    that works nice. But for each button on my web menu (home,
    schedule, ect...), I want to be able to put new content in my
    scrollPane. My buttons don't reside in my flash movie. Do I need to
    create a new movie for each web page?
    I'm not sure how to procede.
    Can anybody help?
    brad

    It seems that when you import an external flash movie into
    Captivate 1, the full path is...
    "_level0.slide0__image_mc.s0_i9_swf_mc.m_swf_mc"
    ...this was the start of the solution for my problem so I
    thought it best to post in case it helps out anyone else.
    BTW - The slide number changes (obviously) and so does the
    'i' reference depending on the attributes you have given to your
    imported movies.

  • Flash movie lagging after publishing

    Hello,
    I have a short animation in the beginning of my CP-projects, like an intro. When I publish the project and play it either in Flashplayer or via the htm-file, the "intro" flash movie is lagging a lot. It's like it's not fully loaded even though I've played around with the preloader in CP.
    When I first created the animation in Flash it was around 3 MB which I then got down to around 250 kb, which I thought would do the trick. It might be a bit better, but it's still a problem.
    So the first slide with the flash movie is lagging when starting the published project, the second slide is also lagging a bit, but after a while it gets up to speed, like it has been loaded. If I then go back to the previous slide, the intro slide it's running a lot smoother.
    So how can I make sure the project will run as it should when I start it the first time?
    Kind regards,
    Patrik

    No worries, should've figured out you meant the size Anyway, the animation is 273 kb as of now.
    I tried to add an all white slide with nothing on it for 25 seconds. It works a bit better, the following slides runs a bit smoother. Still a bit of a hassle to add a slide with no real information on it. Guess I have to be creative.
    Kind regards,
    Patrik

  • 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

  • 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

  • Captivate/Flash Movie Starts Automatically

    I'm learning to use RoboHelp X5 and tried placing an .swf
    (Flash movie) that I created with Captivate within my WebHelp. In
    Captivate I added a playback control bar (forward, pause, play,
    etc.), which works great standalone. However, after generating the
    WebHelp, when I view the page that the movie is on, the movie
    starts automatically---actually it waits about 8 seconds, but then
    just starts. I would expect the person viewing the movie to have to
    use the playback control to manually start the movie. Is there an
    option somewhere that I need to turn on/off?
    Thanks,
    John

    Hi John and welcome to the community
    There are two ways I'm aware of that can be used to
    accomplish this.
    The first and possibly simplest way is to simply insert a
    click box at the very beginning of the movie. By default, click
    boxes are configured to pause the movie until the user interacts by
    clicking the click box area. Actually, if you are presenting your
    movie in .EXE format, I believe this is the only way you can
    accomplish it.
    The second way is to configure the HTML code used in the HTML
    Companion page. Obviously this only works if you are presenting
    your movie in .SWF format and using the companion HTML page to
    display the movie.
    Captivate creates the following code when you create Flash
    (SWF) output and select the Export HTML option.
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">
    <title>Movie Title</title>
    </head>
    <body>
    <center>
    <object classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="640" height="480" ID="Captivate1">
    <param name="movie" value="MovieName.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="loop" value="0">
    <embed src="MovieName.swf" width="640" height="480"
    loop="0" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" menu="false"></embed>
    </object>
    </center>
    </body>
    </html>
    If you amend this code by inserting <param name="play"
    value="false" /> and play="false", you achieve the goal of
    displaying the movie in a "paused to begin with" state.
    Amended code is below
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">
    <title>Movie Title</title>
    </head>
    <body>
    <center>
    <object classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="640" height="480" ID="Captivate1">
    <param name="movie" value="MovieName.swf">
    <param name="play" value="false" />
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="loop" value="0">
    <embed src="MovieName.swf" play="false" width="640"
    height="480" loop="0" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" menu="false"></embed>
    </object>
    </center>
    </body>
    </html>
    Hope this helps... Rick

  • How can we align TOC and Navigation bar for Captivate 4 Aggregator Project?

    Hi,
    Is there any way we can align the bottom of TOC and Navigation bar of Captivate 4 Aggregator project. Or can we give a background color so that they don't look like different entities.
    Thanks,
    Janhavi

    I had this issue too.  What I discovered was that some of the slides in one of my presentations were off the screen.  Some because I had dropped pictures onto a blank slide, and others because I switched background images on recorded slides and didn't merge the images into the existing background.  After fixing those issues and republishing, I put the revised .swf into the aggregator and it worked. 

  • Flash movies in image-control

    When I load different flash movies in the same image-control
    (e.g. via a button-click), the browser-cursor starts switching from
    a busy-cursor (the little round clock-cursor) to an arrow (or
    hand)-cursor intermittingly, without stopping.
    When I load the same movie over the existing one in the
    image-control this does not happen.
    Seems like I have to unload the old movie first? I don't know
    how to do that.
    Any suggestions are welcome.
    Thanx in advance.
    Rui Rosado

    Hi,
    Take a look at this
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=62416
    MJ

  • Controlling flash movie from another

    hello
    i hope someone can help me.
    i have 2 flash movies in a page with a CMS and an iframe.
    so quite a complicated structure...
    QUESTION1:
    is it possible to control one of them from the other one?
    e.g. telling movie B to go to a label from a button in movie
    A?
    QUESTION 2
    is it possible to controll either a target movie is already
    loaded in the page or not?
    suppose i need to check from movie A is movie B is already
    loaded in the page
    , load it in case it is not loaded, then tell ti to go to a
    certain label?
    any help would be greatly appreciated.

    Will require some fancy javascript gyrations. Check out
    fscommand:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15692

  • Spry navigation bar covers flash movie beneath it but not the jpg image, why?

    i have a spry navigation bar with a flash movie underneath,
    and when i hover over the navbar and the submenu pops down it
    covers the flash movie, but it doesn't cover the .jpg image that is
    next to the flash movie. how can i fix this? thanks.

    thanks for the reply Murray, a responder from the flash forum
    gave me the following answer and it worked perfect.>>
    The <object> and/or <embed> HTML elements that
    reference your Flash content accept a number of optional
    parameters. For the <object> element, these parameters are
    supplied via nested <param> elements. Simply add the
    following new <param>:
    <param name="wmode" value="opaque">
    The <embed> parameters are supplied via attributes. For
    the <embed> element, add the following new attribute:
    wmode="opaque"
    That’s it. Your Flash content is now stackable via
    z-index; for example, you may wrap your
    <object>/<embed> pair in a <div> and set the
    <div>’s z-index as you please.
    <div style="position: absolute; z-index=1;">
    <object attributes >
    <embed attributes />
    </object>
    </div>
    If you’re using Dreamweaver, just press the Parameters
    button in the Insert > Media > Flash dialog or in the
    Property inspector when selecting existing Flash content. Type
    “wmode” (without quotes) in the name/parameter column
    and “opaque” (without quotes) in the value column. That
    will handle the above HTML for you, even with the new JavaScript
    embedding available since the 8.0.2 update.

  • Spry navigation covers flash movie element, why?

    i have a spry navigation bar with a flash movie underneath,
    and when i hover over the navbar and the submenu pops down it
    covers the flash movie, but it doesn't cover the .jpg image that is
    next to the flash movie. how can i fix this? thanks.

    mediastream13,
    > i have a spry navigation bar with a flash movie
    underneath,
    > and when i hover over the navbar and the submenu pops
    > down it covers the flash movie, but it doesn't cover the
    .jpg
    > image that is next to the flash movie.
    What you're seeing is the result of the default WMODE
    setting for Flash
    Player, which you can change. Keep in mind, Flash content
    isn't something
    any browser natively supports. It requires an ActiveX
    component or plugin,
    and as a result, is processed outside of the browser's
    composition buffer.
    This lifts Flash content (and other active content, like
    QuickTime, Java
    applets, and so on) from the context of its surroundings. To
    change that,
    you can configure a SWF's WMODE setting for transparent or
    opaque, as
    described here:
    http://www.quip.net/blog/2006/flash/how-to-position-flash-beneath-other-content
    Be aware that any WMODE setting other than the default has
    been known to
    cause usability issues as described in the articles/blog
    entries further
    linked from the above URL.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

Maybe you are looking for

  • My ipod wont sync with mac

    i have an older (wheel) 64gb ipod.  It is not letting me sync the songs i have on my ipod with my itunes library. I get a msg that says if yousync this ipod to your library you will lose all your songs and movies.  I dont want to lose anything instea

  • Help needed, Createing Dynamic User input

    Hello, I am attempting to create some dynamic user input by "predicting" what the user requires in a text box. For example if the user enters "Smi" I have a select list pop up which gives the user all options that begin with "Smi". I am able to achie

  • Import BP Master

    Hi All im importing buisness partner master data through DTW.Please list esntial templates of buisness partner and is it necessary to fill the all fields of such templetes? waiting for your reply Neetu

  • Component Database Hang

    I've stupidly named two component the same name and I'm now having problems with that component.  To delete these components, if I try Tools->Database and click on the Components tab, the program hangs and I can only shut it down.  I'm not sure if th

  • SMART Hard Disk Error - Replace Hard Drive?

    A couple of days ago I recieved an error when I started my computer (HP Pavilion dv6-6071eo), saying "SMART Hard Disk Error" followed by a message telling me that the SMART hard disk check has detected and imminent failure. It told me to backup my fi