AS3 + Captivate 3

Hi,
I'm working on a project which is composed  with a core made in AS3 and animations made in captivate 3.
The application seems to correctly load and display the swf files made with captivate 3 (export settings : flash player 9), but only the first SWF file made with captivate is playing correctly, the others just play a part of the animation then stop without explanation...
I tried to load the SWF files in different domain applications but it doesn't resolve my problem...
Do you have any solutions ???
Regards,
Loïc Charpentier
Production manager

Hi Loïc,
The problem is that Adobe Captivate 3 does not support AS3 only AS2. My best recommendation would be to either download a trial copy of Adobe Captivate 4 where AS3 is fully supported or convert your animations to AS2.
Please note that if you do decide to go with my suggestion of using Adobe Captivate 4 then please remember to select AS3 and Externalize your animations.
To do this:.
1. Choose Edit > Preferences
2. Select Project > Publish Settings
3. Select the AS3 radio button
4. From Externalize Resources select Animations
Click OK and publish each of your projects.
Best - Mark
Visit the macrofireball blog

Similar Messages

  • Controlling an AS3 Captivate swf from Flex -- set quiz preferences

    Hi All,
    I'm able to use the SWFLoader to load the a Captivate.swf, and play it using the nextSlide, previousSlide etc.  However I am being blocked by the quizzes.
    I have access to all the rd* and cp* symbols.   I would like to navigate through all the slides, but if I have a quiz, I am blocked from 'rdcmndNextSlide'  or setting 'rdcmndGotoSlide'  past the quiz.  Does anyone know if this can be done?  Please help!

    DaddyDog,
    Have you checked your Quiz Settings in preferences for your Cp4 project?  There are two options to allow backward movement and to allow reviewing of the quiz.  You may want to try adjusting these.
    When you say you've been successful using the "nextSlide, previousSlide etc.", do you mean the buttons on the Cp playbar?
    One trick that has helped me greatly is obtaining and modifying the movie xml.  The movie xml is generated at runtime and defines the slides, slide objects, quiz settings, quiz slides... etc.  You may want to examine this to see if you can manipulate it to your advantage.  Here's how I can reference it from an AS3 Cp4 widget:
    var mainmov:MovieClip = MovieClip(root);
    var movXML:XML = new XML(mainmov.movieXML);
    Not sure how you have your Flex app loading the captivate swf, but I'm sure you could figure out how to reference the movieXML from another parent in your app.
    HTH,
    Jim Leichliter

  • Is there a way to remove captivate swf click listeners?

    Hi, this is my first time posting.  After a lot of searching and no answers I figure maybe someone here knows.
    Short background: I have a captivate Sim that is being loaded into a sim viewer of a courseware.  The sim viewer has it's own directional pointers, feedback boxes, and instructional boxes.  To get all of this working correctly has been difficult, and I'm using AS3, Captivate 4, Flash CS4, and export for Flash Player 10 for the unloadAndStop() command to clean it up when no longer needed.
    My question: is it possible to directly remove the event listener that captivate is using to listen for mouse clicks? (and add it back when needed)
    I have the correct/incorrect calling a Javascript.  On incorrect, it is set to one attempt, but the javascript tells it to:
    loaderPath.content.rdcmndPause = 1;
    loaderPath.content.rdcmndGotoSlide = loaderPath.content.rdinfoCurrentSlide;
    loaderPath.content.rdcmndResume = 1;
    so, it does not really go anywhere when they get it wrong (kind of a rig for unlimited attempts with incorrect callback)
    The sim I'm using requires that it can be "paused" in essence, with an opaque layer over it.  The problem is that it STILL gets the mouse clicks even through this layer.  I managed to create a conditional rig to fix that (a Boolean that when set to false, does not evaluate the javascript calls i get for correct and incorrect clicks).  but I still have a problem where when the Sim is active, there is a drag and drop instructions box, and when it's released, it evaluates incorrect.
    so, I'm sorry if that is confusing, but I'm basically wondering if there is a way to block captivate from getting the mouse click on an evaluation slide when you don't want it to?

    That would not really solve my issue at all.  I need it to not register a click for correct OR incorrect at a certain point in time (when they are dragging an information window and they drop it).
    Say that I have a screen with a large click box on it, that is correct, and the rest of the screen is incorrect.  If they just happen to drag and drop the information window over part of the correct box I obviously do not want it registering as the correct answer.  I need a way to block all mouse click and release information from communicating with the Captivate .swf (but also the ability to turn it back on).

  • Insert response from adobe captivate to database

    Need ApI to communicate to adobe captivate to insert data in
    database

    Hi tikiri,
    You can access variables directly using the movie instance.
    Please check the code below, where we are printing the varCount
    variable.
    on(release){
    _root.play();
    _root.createEmptyMovieClip("movie", 999);
    _root.movie._x=146;
    _root.movie._y=12;
    loadMovie("test/test.swf", _root.movie);
    trace (_root.movie.varCount);
    This code is specific for AS2 captivate swfs. You can try
    accessing any of captivate system variables also in this way:
    _root.movie.rdcmndNextSlide = 1; // jumps to next slide
    _root.movie.cpCmndMute = 1; // mute the audio
    trace(_root.movie.cpInfoCurrentDate); // print the current
    date
    _root.movie.rdInfoCurrentSlide =
    _root.movie.cpInfoLastVisitedSlide // jumps to last visited slide
    Please go through the list of available variables in
    captivate documentation. All the variables starting from "rdcmnd"
    are legacy variables and exist in captivate 3 projects as well.
    Ones starting with "cp" are new and are not available prior to
    captivate 4. Accessing method remains the same for both cp3 and cp4
    generated swfs.
    For accessing variables in AS3 captivate movies:-
    var movieLdr:Loader = new Loader();
    var movieURL:String = "CA3_Demo.swf"
    var movieURLReq:URLRequest = new URLRequest(movieURL);
    var cpMovie;
    movieLdr.addEventListener(Event.COMPLETE,loadComplete);
    function loadComplete(ae:Event)
    cpMovie = movieLdr.content;
    //Pause the movie
    cpMovie.rdcmndPause = 1;
    //Resume the movie
    cpMovie.rdcmndResume = 1;
    //Jump to next slide
    cpMovie.rdcmndNextSlide = 1;
    also try,
    // print current date
    trace(cpMovie.movie.cpInfoCurrentDate);
    addChild(movieLdr);
    movieLdr.load(movieURLReq);

  • Variables from Adobe Captivate to flash

    Hi,
    can anybody explain me, how to acces variables in captivate
    from flash?
    I can't export my CP file to Flash CS3, there is an alert
    message
    The following elements in your project have not been
    converted. They are not supported by this importer.
    Question slide
    508 compliance
    A swf animation slide has been imported. The following files
    must be made available at publish time:
    DefaultPreloader.swf
    Please make sure you publish the project to "D:\MyQuizzes\".
    Saving the project to this directory will ensure that test
    project will work with the swf animation slide.
    Thanks for answer...

    Hi tikiri,
    You can access variables directly using the movie instance.
    Please check the code below, where we are printing the varCount
    variable.
    on(release){
    _root.play();
    _root.createEmptyMovieClip("movie", 999);
    _root.movie._x=146;
    _root.movie._y=12;
    loadMovie("test/test.swf", _root.movie);
    trace (_root.movie.varCount);
    This code is specific for AS2 captivate swfs. You can try
    accessing any of captivate system variables also in this way:
    _root.movie.rdcmndNextSlide = 1; // jumps to next slide
    _root.movie.cpCmndMute = 1; // mute the audio
    trace(_root.movie.cpInfoCurrentDate); // print the current
    date
    _root.movie.rdInfoCurrentSlide =
    _root.movie.cpInfoLastVisitedSlide // jumps to last visited slide
    Please go through the list of available variables in
    captivate documentation. All the variables starting from "rdcmnd"
    are legacy variables and exist in captivate 3 projects as well.
    Ones starting with "cp" are new and are not available prior to
    captivate 4. Accessing method remains the same for both cp3 and cp4
    generated swfs.
    For accessing variables in AS3 captivate movies:-
    var movieLdr:Loader = new Loader();
    var movieURL:String = "CA3_Demo.swf"
    var movieURLReq:URLRequest = new URLRequest(movieURL);
    var cpMovie;
    movieLdr.addEventListener(Event.COMPLETE,loadComplete);
    function loadComplete(ae:Event)
    cpMovie = movieLdr.content;
    //Pause the movie
    cpMovie.rdcmndPause = 1;
    //Resume the movie
    cpMovie.rdcmndResume = 1;
    //Jump to next slide
    cpMovie.rdcmndNextSlide = 1;
    also try,
    // print current date
    trace(cpMovie.movie.cpInfoCurrentDate);
    addChild(movieLdr);
    movieLdr.load(movieURLReq);

  • How to use aggregator to create a single swf file from multiple files

    Hi everyone,
    I am working on the client's requirement where i have to create a SCROM 2004 based video. Its basically a PPT inside the captivate file. And it has around 175 slides in the file. Some of the slides have animations, voiceover. I am facing a problem during PUBLISHING the file into single SWF file format. Whenever I Publish the slides as SWF, it creates number of SWF files, Swf skin of the player and other manifest, Scorm 2004 files.
    I want only one single SWF file in which every slide should be incorporated in it. Dont know, why it is happening? I tried aggregator for this also, but it didnt worked... The Skin.swf has been easily added and no other files are adding. It shows me an error: "Name.swf is not a AS3 Captivate file ....."
    I am new to this. Please help me out as I have a very short deadline for this.
    Thanks and Regards

    Maybe you misunderstand: this is a user forum, not online help by Adobe staff.
    Sorry, but if you are that impatient, you'll have to pay for online support. You post a question and expect to have answers within minutes?
    Lilybiri

  • Creating variables in AS3 that Captivate can read.

    I have a Flash project written in AS3 and I am colaborating with someone that is writing a Captivate training program.  The Flash program is a little game and I need to store a couple integers readable by Captivate.   I would like to just create the variables in AS3 and have them readable by the Captivate code (that I am not writting).
    If that's not possible I suppose I need to actually locate and update the varibles in Captivate (we decided on some variable names).
    user_pass  (integer, 0 means user is still trying and 1 means user passed)
    user_attempts ( I will store how many attempts the user made at the game)
    Thanks very much for any help.  I think she is pretty strong in her Captivate coding abilities, and I am only moderate in my Flash/AS3 abilities.
    Edit: I wanted to mention that the flash game was embedded into a slide in Captivate.

    In AS3 you can use the bracket notation...
    var trainOfUfo = "...hi earthling...";
    var handleBlade = this["train"+"Of" + "Ufo"];
    AS2 supports the eval() function, but it was done away with in AS3

  • How does Captivate 4 function once imported into and now within Flash 4 (AS3 environment)?

    I have a specific need to try to get a handle on a certain section of the timeline to add a textbox with certain text in it.  if (label.name == "Slide_3") {then... display the textbox and the text } does not work.  I am trying to use the addChild method to display the textbox and its text in the displayList during the Slide_3 section of the timeline.  This may not be the way to go as I can't seem to get it to work...
    My Goal: 
    Using AS3, working from within Frame1 coding area (Timeline scripting area), have some text appear in a textbox but only while Slide_3 is playing.
    I already have written the code that pulls text in from an XML document, stuffs it into a dynamically created textboxand, and  am trying to take some of the text and have that text only appear during a certain part of the timeline. 
    Assumptions:
    The standard/native way that a Captivate.cp file is imported into Flash CS4 results in a timeline that has labels (Slide_1, Slide_2, Slide_3, etc.)
    I don't want to manually create a textbox and manually put the text into it on the Actions frame of the Slide_3 label, but instead would like to put the text into the text property of the textField programatically from Frame1 (Action frame in Frame1 + F9)
    I have tried using the addChild method but that adds the textbox to the WHOLE timeline. (Creating a textbox is not a problem, but instead getting some text into the textbox only during Slide_3 is the issue)
    The Problem:
    How can I get the text to only appear during the playing of the Slide_3 label frames? (But NOT display during the rest of the timeline)
    When I run code on the Action frame of Slide_3 that outputs the displayList, I get the following:
    root1 [object MainTimeline]
         info_txt [object TextField]
    // this is a textfield that i created
          instance3 [object TextField]
          Slide_3 [object Slide_3_7]
               instance15 [object Shape]
               instance16 [object MovieClip]
                    instance17 [object Shape]
               instance18 [object clickbox4_9]
                    click_zone [object SimpleButton]
                    instance19 [object Shape]
               instance20 [object Shape]
               instance21 [object Shape]
               instance22 [object Shape]
          SlideClip3 [object MovieClip]
    Yet, when I trace the keyword *this* (from within the Action frame in Slide_3) Flash outputs [Global Object].
    I am wondering how I can display the specific text for Slide_3 only during the playback of Slide_3. I'm guessing that, if I could only find what the Global Object is, I could addChild to its display list property.
    I also tried using some of the Static variables to no avail (that were automatically created when the import occurred) such as:
    var ref=this;
    var nCurSlideIndex:Number;
    var currentSlide_mc:MovieClip;
    var quizPlaybackController;
    var scrubberChanged:Boolean;
    var slideNewFrame:Number;
    var mcLoader:Loader = new Loader();
    var loading_sub_mc:MovieClip;
    var m_preloaderLoaded:Boolean = false;
    Any guidance, suggestions, ideas, that you have would be very welcomed! 
    Some Things that I've Tried:
    Incidentally, when I write code in the main timeline (Frame1 and press F9) I get some of the following behavior:
    //this.Slide_1.addChild(info_txt); //displays the textbox with text but only during "slide 1"
    //this.addChild(info_txt); //displays textbox and text during the whole timeline
    //SlideClip1.addChild(info_txt); //displays textbox and text only during "slide 1"
    //SlideClip3.addChild(info_txt); //nothing displays --TypeError: Error #1009: Cannot access a property or method of a null object reference.
    //ref.addChild(info_txt); //displays textbox and text all the time
    //addChild(info_txt); //displays textbox and text all the time
    //ref["Slide_3"].addChild //no luck here either

    I don't have any insights into this particular problem. But we are having strange things happen with Captivate and imported AS3 animations. never had problems witht he AS2 animations. so, we are having to recreate and everything and republish as as2.

  • Tracing Captivate 4 variables in Flash CS4 using AS3

    Hello. I've googled this 9 ways to Sunday and can't find an answer. I'm hoping one of you can help.
    I have a very simple Captivate 4 quiz with one question. I embed the Captivate SWF file in a Flash file, which plays fine. However I am struggling with tracing one of the Captivate variables in the Flash file using AS3.
    All I want is for Flash to read the Captivate variables so I can continue developing my quiz in Flash (building additional functionality Captivate does not provide).
    The variable I'm attempting to trace is cpInfoAuthor.
    I've attempted:
    trace(root.cpInfoAuthor);
    trace(root.movie.cpInfoAuthor);
    var cpAuthor = MovieClip(root).cpInfoAuthor;
    All of the above examples error out: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Captivate preferences are set to publish in AS3.
    Anyone with an explanation?
    Be splendid, Jodie.

    Hi Jodie,
    I'm not exactly 100% proficient in AS3 but to me it looks like your statements are wrong.
    Since you are loading your Captivate SWF into a Flash SWF then (root) actually refers to your Flash SWF. I guess that you are loading your Captivate SWF into a movieclip on your Flash stage and that movieclip has an instance name,
    You would therefore need to grab the variables like var cpAuthor = yourLoaderMovieClip.cpInfoAuthor;
    See if that doesn't do the trick for you.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Other problems with loading Captivate files into Flash AS3 project

    I have a Captivate file done with Captivate 3, published to
    Flash player 9 that is being loaded into Flash AS3. The captivate
    is a simple recording of some mouse clicks in a browser. I am
    displaying the playbar along the bottom, and its buttons all work
    fine except for the progress bar, where you can drag the knob and
    scrub back & forth in your presentation.
    This progress bar is not working as it should. I see the
    mouse cursor change to a hand, but when I click I cannot drag the
    knob to control the progress bar. The other buttons in the playbar
    do work (replay, pause, play, back, forward).
    This is a unique problem in that it is only happening when
    viewed in IE (7) when loaded into my Flash AS3 project. When viewed
    in Firefox in my project, or as a standalone SWF, or as a SWF
    simply embedded onto a plain HTML page, it works just fine.
    Does anybody have any insight?
    Another thing I notice with loading Captivate files with AS3
    is the the amount of output messages it displays. Rather annoying
    (unless this is a "feature" I've yet to be aware of - heh)

    Hi,
    I know exactly how you feel, there is simple answer; replace
    Captivate for Camtasia Studio 5 at techsmith.com. The weight on
    those shoulders will be gone! You'll smile more, be more
    socialable. One Happy Person.
    I am very happy person ;)
    Kind Regards,
    Boxing Boom

  • Importing Flash Animation AS3 into Captivate 3.0

    I have some animations and interactions that were written in
    Flash AS3, that work fine when published in a SWF file and run with
    FlashPlayer 9, but they don't work at all when I import them into
    Captivate 3.0. In Captivate, they seem to run when they apear in
    the in the Insert -> Animation dialog box., but then once they
    are placed in Captivate, they don't show up at all when I Preview
    -> Project (F4). The dialog box says that the duration of the
    animation is 00:00:00.1 (i.e., one tenth of a second!). What was on
    the stage (from the Flash file) shows up, but none of the AS3 code
    works. Help!!

    If you create an AS3 widget in Cp4, you'll notice that is starts you off using a template.  Most of the action takes place on the onEnterFrame event handler.  If you want something specific to occur at a certain time, you must place a condition for either the current slide, or the current frame.  Otherwise, the actions you describe above will occur... you animation AS3 code just executes immediately because Cp doesn't know when to execute it otherwise .  I'd suggest that you either use the widget framework, or place a condition in your code for executing on a specific frame or slide.  When I create widgets, I check for a specific frame:
    if (mainmov.rdinfoCurrentFrame  == currentFrameCheck) {
         //your code here
    If you go this route, I'd look into another function called AddNoSkipFrame which ensures Cp4 will not skip over the frame you're trying to check.  You can read more about it here.  And there's a thread about it here.
    Good Luck,
    Jim Leichliter

  • Controlling External Captivate 5 swf using flash AS3

    Hi,
    I have created a basic Flash AS3 interface in which I am trying to control the navigation (next slide / previous slide) of an external captivate 5 swf which I have added using a loader, but i cant work out the solution.
    My code is currently as follows:
    import flash.net.URLRequest;
    var Xpos: Number = 96
    var Ypos: Number = 94
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("content.swf"));
    my_loader.x = Xpos;
    my_loader.y = Ypos;
    addChild(my_loader);
    stop();
    nextBut.addEventListener(MouseEvent.MOUSE_UP,gotonextframe);
    function gotonextframe(event:MouseEvent){
    MovieClip(my_loader.content).rdcmndNextSlide();
    Any help would be much appreciated,
    thanks
    Dez

    Thats perfect, thanks for the reply, much appreciated!
    I guess you have tried:
    rdcmndRewindAndStop
    Set to 1 to rewind and stop the project.

  • Captivate 4 Variables and AS3

    Hello,
    I need to pause a Captivate 4 movie externally with AS3. The
    reason for this is because I have a drag and drop interaction,
    therefore I need to pause the movie so the interaction can take
    place. This worked perfectly with AS2, but due to issues were
    having with flash player 10 and Captivate, we have to use AS3
    throughout.
    In AS2, all I had to do was put
    this._parent._parent._parent.rdcmndPause = 1;
    That was it. Bring that into the Captivate file and bang it
    paused like a gem.
    How do I do that with AS3? Any help would be greatly
    appreciated
    Thanks
    Doug
    Update:
    I used the attached code to correct the issue, in case anyone
    runs into an issue where the need to pause the CP SWF externally...
    I know the whole purpose of Captivate is to eliminate the need of
    external Flash resources, and even though Captivate is a great
    program, it cannot process a drag and drop interaction without
    using Flash.

    > I need to pause a Captivate 4 movie externally with AS3.
    The reason for
    > this
    > is because I have a drag and drop interaction, therefore
    I need to pause
    > the
    > movie so the interaction can take place. This worked
    perfectly with AS2,
    > but
    > due to issues were having with flash player 10 and
    Captivate, we have to
    > use
    > AS3 throughout.
    >
    > In AS2, all I had to do was put
    >
    > this._parent._parent._parent.rdcmndPause = 1;
    >
    > That was it. Bring that into the Captivate file and bang
    it paused like a
    > gem.
    >
    > How do I do that with AS3? Any help would be greatly
    appreciated
    >
    I'd expect the same to work. Are you saying it does not?
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices

  • Captivate 5.5 variables in AS3

    Hi, i seem to be having a problem accessing the captivate 5.5 variables in AS3.
    I saw guides that tells people to do something like
    var myRoot:MovieClip = MovieClip(root);
    var mainmov:MovieClip = MovieClip(myRoot.parent.root);
    mainmov.rdcmndPause = 1;
    but i cant get it to work.

    Hello,
    What do you mean by 'playback': from the screenshot I deduct it is Previewing. Did you try to view in Web browser of after publishing already?
    Could you check the quality of the slides in the Properties, General region?
    Lilybiri

  • Who has successfully created a SCORM compliant captivate course with AS3?

    Hi Everyone,
    I would really like to know your experiences with publishing courses using the AS3 settings...
    Have your courses successfully been published and used on an LMS?
    Is the tracking working for you?
    If yes, what settings do you use? (besides the AS3 and flashplayer 9 or 10)
    How did you start the file, e.g. using a project or design template, or from scratch?
    You would help me a great deal by sharing your experience with this!
    Thanks a lot!
    Greetings from the Bahamas
    Annemarie

    I am having a similar issue. I took the update earlier this week and it seemed to be working until a user fails the quiz and exits the course. When they return to the course it sticks on the grey loading screen - infinitely.
    Any suggestions would be most helpful!
    We are using IE7
    Captivate 5
    Geo LMS

Maybe you are looking for