Control a swf AS3 Captivate in Flex - quiz set preferences

Hi all

I am able to use the SWFLoader for loading a Captivate.swf, and play using the nextSlide, previousSlide etc..  However I am stuck by the quiz.

I have access to all the symbols rd * and cp *.   I would like to navigate through all the slides, but if I have a quiz, I'm stuck in 'rdcmndGotoSlide' 'rdcmndNextSlide' or parameter passed the quiz.  Does anyone know if this is possible?  Help, please!

In fact, in AS3 you cannot overload a function if the class was sealed. The AS3 performance gain was realized by using the object related to store variables. Unfortunately, the subject of character is not accessible, so we cannot dynamically overload functions more.

However, if the class is dynamic and the feature has been added dynamically to the performance, you can overload the it.

To make it simpler:

  • If the class is sealed: you can't do it.
  • If the method is encoded in an external class: you can not do.
  • If the class contains the dynamic keyword and that the function has been added to the run time: you can!

I hope that's not too complicated and it helps!

Yves

PS most of this knowledge came to try to overload the functions used in the classes of Captivate ;-)

Tags: Adobe Captivate

Similar Questions

  • Control a SWF from Flex file?

    I have a flex application with a stack of view which has some of his children SWFLoaders.

    For example, "page 2" the view stack is an interactive SWF of flash cs3. It loads and works perfectly, but how to stop and reset it to Flex, as when the user changes discovered battery views?

    Fortunately, the SWF file is playing, but the user goes back to 'page 1' from VS, the SWF on the page 2 always plays its audio.

    How can I control the SWF file?

    I found an old post which enabled, with a simple change. In the interest of helping others who find this thread, here's what worked for me:

    In my element 'page 2 ':

    Import mx.controls.SWFLoader;

    private var movie_clip:MovieClip;
    private var myLoader:SWFLoader = new SWFLoader();

    private function init (): void {}
    myLoader.addEventListener (Event.INIT, loadHandler);
    myLoader.load ("equipment.swf");
    this.addChildAt(myLoader,0);
    }

    private void loadHandler(e:Event):void {}
    movie_clip = e.target.content;
    }

    public function pp (): void {}
    movie_clip.remotePause ();
    }

    ]]>

    And then, in the main application:





  • Control loaded swf on the main timeline

    Hello

    I'm working on loading external swf files for ios. I am able to load swf files and assembled visible or invisible in different settings. I have trouble controlling the swf files loaded on the main timeline. Specifically, I would like to have a button on the main timeline, that when you click on will move a swf loaded to frame 1.

    Here is a code that loads a swf file:

    var myLoader1:Loader;

    var loaderContext1:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    if(myLoader1 == null)

    {

    myLoader1 = new Loader();

    addChild (myLoader1);

    }

    myLoader1.load (new URLRequest("folder/file1.swf"), loaderContext1);

    myLoader1.visible = true;

    backbutton.addEventListener (MouseEvent.MOUSE_DOWN, backbutton1);

    function backbutton1(myEvent:MouseEvent):void {? myLoader1.gotoAndStop (1) ;}}  (this line does not work)

    (Once I load file1.swf, in the file1.swf I click a next button to move on to different periods.) My question is: hHow do I code the "backbutton" on the main timeline so that it causes the file1.swf to go to frame 1?)

    Thank you for your help.

    After loading is complete (and assuming that you load an as3 swf), you can use:

    MovieClip (myLoader1.content) .gotoAndStop (1);

  • Captivate 5 (no Quiz) published in SCORM 1.2 - Saba 5.4.3

    I have a 13 'reader' page where the learner should only view the slides, and when they get to the end, near the course.

    I'm on Saba 5.4.3.  I'm editing of SCORM 1.2 but can not seem to get 'course' to go to the "transcript".

    I have tested almost all combinations of 'settings' (though - the right - which is deceiving me).

    Here are the parameters that make me show the 'completed' in the 'TOC' courses still closing remains in inscriptions.

    STATEMENT QUIZ

    Enable communication for project (ticked)

    SCORM-> clear (1.2)-> default

    Status report

    Complete / complete (checked)

    Report to the LMS as

    "Percent"

    Data in the report have chosen

    "Slide views only", then 100

    Report level

    "Interactions and Score."

    Success or failure:

    Pass or Options fail: ' 75% or more... ". »

    I tried to use '0% ', I used a different number point of view "Slide".

    I tried to 'Score' vs 'per cent'

    Any help would be great, thanks!

    I suggest that you use a button instead of a quiz question since you must properly configure the issue so that he won't have that one click on the button submit.  Otherwise it will take two clicks per user. To submit and another click to progress.  A normal button will always work with a single click.

    Just add a normal Captivate to the second last slide and this button the option Report of Quiz with a score of 1.

    Label this button something like click here to complete this Module or similar, so that all learners get the idea they REALLY NEED to click on this button or else their courses are no more.  Simply adjust as continue or go to action page based on the success of the button action.

    Do the last slide in the film quite short, maybe a second or two. Set preferences > action of end of project-to-project stop or close project, depending on what seems better to work with your LMS.  If you throw all the course modules in a window for the SCORM player, you can often use close project.  But if you spear the course content in the SCORM player, you will find that some LMS will not allow the Close command project and project to stop is a better option.

    If it's any consolation, you shouldn't need to do this just to have your course to complete, but yours isn't the only LMS that does this with Captivate content.

  • Control a lesson 8 Captivate when each slide audio and has a button BACK, NEXT, and REPLAY

    If I use the built in game how bar can I control the button FOLLOWING:

    Question 1

    How can I check the button NEXT to be active after that audio is complete on this image?


    Question 2

    How can I check the button NEXT to be active after the FRAME is over and he referred to this image? (Playback mode)


    I'm open to just using the button and make my own bar games, but still do not know how to control buttons

    Thank you

    Wayne

    If you use the built-in skin Captivate PlayBar you can not control the functionality of the buttons NEXT without having access to the expertise of programming.  You need to output SWF ActionScript 3 programming skills.  For the release of HTML5, you need JavaScript expertise.

    If you bar ditch reading and simply add your own buttons to the slide, you can time the appearance of the next button on the slide by placing this item on the timeline to a point AFTER the end of the audio.  You can also use the advanced system InReviewMode with a conditional Action variable to display a button on a slide during the viewing Mode.

    But you seem like you might be a beginner using Captivate, so some of these tips may still is beyond your abilities at this point.

  • Captivate 5 - revision Quiz - Questions and missing buttons after review

    Hi, I have a question about the feature of revision quiz in Captivate 5.  When I review quiz, questions and the buttons do not appear.  I checked the transition between slides to "fade in" only.  Questions remain missing after the review.  Figure out and can't find any post related to this issue.

    Thank you.

    Ok.  By the look of your screenshots you have deleted some elements of the quiz question slides.

    Were you remove all standard legends such as the legend of title or caption Quiz, or items such as the control box?

  • Captivate 8 customize quiz results message

    Hello

    I was given a Captivate file and I need to translate everything for the French. I translated everything, with the exception of a single message on the results of the quiz screen. When the user fails there is a message that displays "Sorry, you failed the quiz" and I need to translate it. I looked everywhere but can't seem to find where to update this message, including under the menu Preferences of Quiz.

    How can I change this sentence? What is a variable that controls the message here?

    Thanks in advance.

    Try the Quiz preferences, settings, Quiz results Messages

  • Control DMX with AS3

    I try to write a program in AS3 (probably using the Flex SDK) that controls a light theatre DXM Pro USB system. The program must be able to send data to several DMX channels to control the light level, allowing the projects to light either pre-tuned and executed in a particular order.

    I saw libraries to work with DXM inr VB and c#, but I'm trying to determine if someone has written an AS3 library to send data to the DXM Pro USB device. I've never used AS3 to communicate directly with a USB device, so I'm a little loss to know where to start. Obviously, this will be a project written for AIR, because it will need access to system devices.

    Does anyone know of such a library? If this is not the case, can someone point me in the right direction for reading on communicate with devices USB in AS3?

    I didn't have a wrapper, as I wanted to be installed with the installer for Adobe AIR. And I checked Netlab. It worked fine, but I wanted to manage the problem at the level of the code, so I could have more control over it.

    I finally solved the problem with Serproxy, which runs in the background and makes USB ports available via 5331-5334 ports (COM 1-4) on localhost. Because the DMX USB Pro emulates a COM port, it was quite easy to connect via Serproxy (insofar that I made sure that the DMX USB Pro was not assigned a port above 4).

    I used NativeProcess, that's new in AIR 2.0. I was not familiar with this subject, so I thought I'd share the code here in case others want to use it.

    if (NativeProcess.isSupported)
       var file:File = File.applicationDirectory.resolvePath("serproxy.exe");
       var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
       nativeProcessStartupInfo.executable = file;
       nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;
       process = new NativeProcess();
       process.addEventListener(Event.ACTIVATE, handleProcessActivation);
       process.start(nativeProcessStartupInfo);
    } else {
       Alert.show("Unable to start Serproxy.");
    }

    I have connected to the port on localhost using the plug then used a ByteArray to getting the right information to the DMX USB Pro.I was also an event handler to exit the nativeprocess instance when the application closed.

    Thanks to all who responded. If someone needs help, namely the correct information to switch to the DMX USB Pro, I'd be happy to share what I know. Their documentation is a little sparse, but a little experimentation allowed me to find the right bytes to send.

  • Use the old C3 SWF in Captivate 5 - the best way to convert project?

    I'm updating some old e-Learning content created in Captivate 3 in Captivate 5.

    This includes some animations that are small 1 or 2 slides C3 SWF.

    These don't work in C5 as they are implemented in ActionScript 2.

    I tried to open their original .cp files in Captivate 5 and then republishing to AS3.

    This translates into animation (sometimes) play when I play the slide in the edition, but in the preview window or

    Edition I get a white grey that does nothing.

    Strangely the C3 project containing sovereign wealth funds comes through relatively spared apart from that (well a few invisible buttons and some changes of fonts).

    The only solution I have at the moment is to open the file in C3, copy the background, then use the bottom in a new project of C5 and tinkering with positioning etc of mouse, which is far from ideal.

    Is there a better way to do this?

    (BTW I also access to C4 if it helps)

    Thank you

    Lynn

    I would try the upgrade of my Cp3 project files that generate these SWFs to Cp4 format and then first to Cp5 Cp4.

    Once you have your problems to the Cp5 format should be minimal, as far as compatibility goes.

  • Need help with AS3 on Radio button Quiz

    I am trying to set up a quiz question multiple choice of radio button, but I have problems with some of the ACE and hoped that some of you could help me. I'm fairly new to ActionScript, but I'm trying to pick up quickly. The code is listed below. The lines of errors have been increased in size.

    Import fl.controls.RadioButtonGroup;


    var radioGroup1:RadioButtonGroup = new RadioButtonGroup ("QuestionC1");

    var totalScore:int = 0;

    var totalCorrect:int = 0;

    var totalWrong:int = 0;


    cpr1a.label = "" Complete a resuscitation ";"

    cpr1b.label = "" cardio a resuscitation ";"

    cpr1c.label = "" cardio a Revival ";"

    cpr1d.label = "" Complete a Revival ";"


    cpr1a. Group = radioGroup1;

    cpr1b. Group = radioGroup1;

    cpr1c. Group = radioGroup1;

    cpr1d. Group = radioGroup1;


    submit_btn.addEventListener (MouseEvent.CLICK, submitClick);


    function submitClick (MouseEvent): void {}

    If (radioGroup1.selection == null) { }

    return;

    }

    If (radioGroup1.selection.label == "Cardio a resuscitation") { }

    status_txt.text is radioGroup1.selection.label + "is correct!";

    totalCorrect ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }else{

    status_txt.text is radioGroup1.selection.label + "is incorrect. I'm sorry. » ;

    totalWrong ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }

    }

    I don't see where this error could occur except perhaps for a case where a radio AS2 is used because it seems that they do not have a group property, but an AS3 radio button.  Make sure that your publication of Flash settings are set to use AS3.  AS3 errors normally have error numbers that also made the mistake that you mentioned ring of a scenario of AS2.

    Here is a link to the file that I made based on your code that works very well and does not display the errors you mention.  It is a CS3 file.

    http://www.nedwebs.com/Flash/AS3_Radios.fla

  • Is it possible to integrate an external control (ActiveX, for example) in a Flex application?

    I would like to build an application, and Flex seems to be a good option. Flex stuff would be hosted in an application within the ActiveX Flash Player from Adobe. The communication between the application and hosting the Flex application would be possible via the ExternalInterface. However, I need to integrate a special command (in fact, a word processor) in one of the panels of the Flex application. Is it possible to do? It could be as well a browser window.
    THX

    You can't put an activeX control, or anything else besides directly with a SWF file.

    You could put in the browser host, perhaps in an IFRAME and automate Flex using javascript thorugh ExternalInterface.

    Tracy

  • Import swf from Captivate 3

    Hi, someone at - it has imported a single file and fast that contains its own control presenter since a published file in Captivate 3 reading?
    Currently, when you post Cap 3 two files are created xxx.swf and xxx_skin.swf... Import both of them in the presenter does not work either.

    The idea is to have a voice more and points on the left side of the slide, and then on the right swf file with its own control of reading for the user to play manually after the voices above.

    By disabling the "frontiers" in the skin, option will publish only a swf file.

  • What to put in pause/resume command as3 captivate 6.

    OTN I work for only wants to work with vanilla to captivate and flash versions as well as widgets are too difficult to convince them to use.

    I need a break start captivate using an external call but so far... good .no on these sub form scripts

    get an alias for the main movie.

    Stop();

    var myRoot:MovieClip = MovieClip (root);

    var mainmov:MovieClip = MovieClip (myRoot.parent.root);

    Say things to stop and or continue.

    mainmov.cpCmndPause = 1;

    mainmov.cpCmndResume = 1;

    I guess it should work because that is what was suggested by a bunch of other developers useful.

    But when I paste these into a swf and load it as an animation in Captivate... I get nothing!

    Someone at - it a petter process does not include a widget?

    See you soon

    Luke

    Try using the old variables rd.

    rdcmndResume

    rdcmndPause

  • Can Captivate 6 export quiz results/interactions to Excel?

    We use the option in Captivate 6 internal server reports. I thought there was a widget for this, but I couldn't find.

    We would like to know if we can capture data to a great quiz and then throw in the internal server, or vice versa.

    Is this possible?

    Thank you

    Judy

    Hi Judy,.

    With Adobe Captivate Quiz results analyzer, you can go and get the result of interactions and the Quiz reports and export it in. CSV, which. CSV can be opened in MS Excel.

    Is this what you need?

    Thank you.

  • Captivate 5.5 Quiz preferences

    Using Version 5.5. I create multiple choice quiz slides where the user has three attempts to answer the questions correctly.  In case the user is unable to correctly answer the question in three attempts, is there a way to display the correct answer after the third incorrect try?

    Hello

    Each Quiz Question allows you to configure up to three stories of failure. One way you could do this would be to configure the third legend failure so he gave the answer.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

Maybe you are looking for