Captivate variable assigned from an inserted .swf?

I have this bit of code in my .swf file (published from Flash 4):
root.rdcmndExit = 1;
When I try to publish the .swf I get this error:
"1119: Access of possibly undefined property rdcmndExit through a reference with static type flash.display:DisplayObject."
I get that error for everyvariable I try to set.
Seems like it should be an easy thing to do, but after two days I still can't figure it out. Any help would be much appreciated. 
Here's the complete code of the .swf file: I want to insert in Captivate:
import flash.external.ExternalInterface;
import com.adobe.captivate.widgets.*;
import com.adobe.captivate.events.*;
import flash.display.*;
import flash.events.*;
import flash.net.*
// Create the URLLoader instance to load file
var loader:URLLoader = new URLLoader();
// Define the event handlers to listen for success and failure
loader.addEventListener( IOErrorEvent.IO_ERROR, handleIOError );
loader.addEventListener( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus );
loader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError );
loader.addEventListener( Event.COMPLETE, handleComplete );
// Attempt to load the file
loader.load( new URLRequest( "http://www.epic.com/anything.txt" ) );
function handleIOError( event:IOErrorEvent ):void {
  trace( "Load failed: IO error: " + event.text );
  root.rdcmndExit = 1;
function handleHttpStatus( event:HTTPStatusEvent ):void {
  trace( "Load failed: HTTP Status = " + event.status );
  root.rdcmndExit = 1;
function handleSecurityError( event:SecurityErrorEvent ):void {
  trace( "Load failed: Security Error: " + event.text );
  root.rdcmndExit = 1;
function handleComplete( event:Event ):void {
  trace( "The data has successfully loaded" );
  root.rdcmndResume = 1;

I found the answer here:
http://www.cpguru.com/adobe-captivate-5-system-variables/

Similar Messages

  • AS3 pass variables-values from loaded external swf to parent swf

    Hi,
    I am working on an eLearning project that uses a main SWF (SWF1) and a second SWF (SWF2) with 2 quizzes in it. Published to AIR for Desktop and Android, SWF1 and SWF2 are packaged together in the AIR desktop or AIR APK exports.
    I can use a loader in SWF1 to call and run SWF2. What I am having difficulty with, need some help, is how to get the 2 scores from the 2 quizzes in SWF2 and load these values (each is a Number) back into SWF1. Once back in SWF1, they will be written to String and then displayed in a text box using textbox.text.
    While I've searched online and found examples for sending variables from parent to child SWF's, so far not able to find an understandable/useable AS3 script example for getting variables from child to parent SWF.
    Any help appreciated.
    Best Wishes,

    Hi,
    Still stuck. Can't get SWF2 to go back to SWF1 frame 2.
    SWF1, based on Kiran's AS file with the class AppEvent (class is not called in SWF1 until frame 2, and is called in SWF2 frame 9) loads SWF2 using:
    //SWF1, frame 2
    stop();
    import flash.display.Loader;
    expB100.addEventListener(MouseEvent.CLICK, L1, false, 0, true);
    function L1(e:MouseEvent):void {
    loaderL1.load(new URLRequest("Hotspot13.swf"));
    loaderL1.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildLoaded);
    addChild(loaderL1);
    expB100.visible = false;
    function onChildLoaded(evt:Event)
        var child:DisplayObject = evt.target.content as DisplayObject;
        child.addEventListener(AppEvent.CHILD_DATA, getChildData);
        addChild(child);
    function getChildData(evt:AppEvent):void
        trace(evt.data.var1,evt.data.var2);
        tTest.text = String(evt.data.var1);
        tTest2.text = String(evt.data.var2);
    I wonder if there is some confusion between MovieClip and DisplayObject when SWF2 tries to return to SWF1 frame 2, using MovieClip(parent.parent).gotoAndStop(2); and gets an error?:
    Error #1034: Type Coercion failed: cannot convert flash.display::Stage@2f1ef71 to flash.display.MovieClip.
        at Hotspot13_fla::MainTimeline/onClick()[Hotspot13_fla.MainTimeline::frame9:124]
    Hotspot13 is SWF2; SWF2 frame 9 uses the following to try to return to SWF1 frame 2, causing the above error:
    function onClick(event:MouseEvent):void
        trace(this,this.parent,this.parent.parent);
        dispatchEvent(new AppEvent(AppEvent.CHILD_DATA,{var1:score1,var2:rbselectedT},true)); 
        MovieClip(parent.parent).gotoAndStop(2);   
    Or maybe the AppEvent.as file is imported in frame 1 when it should be imported in another later frame like SWF1 frame 2 where it is first used?
    Best Wishes,

  • Java Variable Assignment from ODI Proc

    Hello,
    I have a requirement of purging the records in a set of table in DB.
    The table list to be purged is maintained in a Table Custom_Tab_List. Addition to that I need to record the total number of records deleted in another Logging table for this session.
    Wrote an ODI Procedure for the same.
    <b>Command on Source</b>
    Select table_name from custom_tab_list<b>Command on Target</b>
    delete from #table_nameFor additional Number of Counts thought of adding a Java Variable which would be global to the session. So added Step 1 in procedure
    <@ java.lang.Integer V_Count @>
    Step 2 of the Procedure
    <b>Command on Source</b>
    Select table_name from custom_tab_list<b>Command on Target</b>
    DECLARE
    v_c number;
    BEGIN
    select count(*) into v_c from #table_name;
    <@V_Count@>:= v_c+ <@out.println.(V_Count); @>;
    delete from #table_name;
    END;Not able to assignt the sql variable to the Java Variable. Is there any other way other than creating objects in the Database as an solution.

    I dont think that is possible. Two ways you can store the oracle value to a java variable.
    1.
    command on source, you can select the table name or any value with alias name
    command on target(java beanshell) just store the alias name as follows
    <@String java_v="SOURCE_ALIAS":@>
    2.
    You have to use the java program to do the dml operation as follows and retrieve the affected rows.
    not: I have not tested these codes but it will be allmost same. you just need to debug it.
    <@
    import java.sql.*;
    import java.lang.*;
    try {
    Connection myCon = snpRef.getJDBCConnection("SRC");
    Statement myStmt = myCon.createStatement();
    int cnt = myStmt.executeUpdate("delete from #SOURCE_ALIAS");
    catch(Exception s){
    System.out.println("Table is not exists!");
    myStmt .close();
    myCon.close();
    @>

  • Up a score of one insert swf in captivate

    I do not control many variables in captivate and wanted to know how to do the following scenario:
    I realize a quiz of 10 questions via captivate I want to know the score at the end.
    When the student answers correctly, before moving on to the other question it accesses a swf animation style is a penalty shootout game where he will be able scored 1 point if he succeeded. I will wish that this score is accumulated each time the learner brand appraisse the final result screen on a line other than the result of the quiz. For only the score against questions ascend to lms. What line of code do I insert in my swf file so that captivate retrieves the score via the swf animation?

    That means the file path or link to the original file has been broken.   Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Error While Assigning Ad insert contract from Ad insert orders.

    Hi Experts,
    While performing the transaction for u2018Assigning Ad inserts Contracts from Ad Insert ordersu2019, Iu2019m getting the following error.
    Message no. JVSD056
    I did the following steps.
    a) Created a geographical unit.
    b) Assigned that geographical unit in the BP master of the retailer with a newly created assignment type.
    c) Linked the geographical unit in the booking unit for Ad inserts  in MAM .
    d) Created an Ad insert order in MAM by using the booking unit which has the geographical unit assignment.
    Then tried to execute the u2018Assign Ad inserts Contracts from Ad insert orders. The error message is JVSD056.
    Appreciate if anyone can help me in this. This is the first time we are doing this.
    Regards,
    Suresh

    Hi Helios,
    I hav egone through the document.However i have resolved the error ar: illegal option -- F by following the doc id Doc ID 785828.1
    Now i am facing error while relinking
    Relinking module 'FNDCORE.dll' in product fnd ...
    Removing any existing temp directory
    rm -rf temp
    creating the temp directory
    mkdir temp
    changing permissions for the temp directory
    chmod 777 temp
    Getting the object file names for this FNDCORE.dll
    gnumake -f E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk fndcore.LIST
    E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk:760: *** target pattern contains no `%'. Stop.
    Unable to get the objects for module "FNDCORE.dll".
    See error messages above (also recorded in log file)
    for possible reasons for the failure.
    adrelink is exiting with status 1
    Please advice
    Regards,
    SRK

  • Passing Captivate Variables to Embedded swf

    Hello,
    How can i read a captivate variable in embedded swf file like cpInfoCurrentSlide;
    Thanks

    var cpRoot:Object = MovieClip(root);
    var mainmov:Object = MovieClip(cpRoot.parent.root);
    mainmov.cpInfoCurrentSlide
    mainmov.rdinfoCurrentSlide
    Some things only work with the old rd variables.
    This works for 6 and 7, I haven't tested on 8 yet.

  • Manipulating inserted SWFs

    Is there a good way to manipulate inserted SWF animations
    (created in Flash) from Captivate? i.e. changing variables, pausing
    playback, etc?

    Hi RandyHickman and welcome to our community
    Unfortunately, there is not. Not simply within Captivate.
    It's really just designed to play an inserted .SWF and not interact
    with it.
    Cheers... Rick

  • How? Flex pass variables or call function in SWF

    Dear All:
    I am new in Flex.
    But I stuck with a problem for weeks.
    I wish to communication between Flex and Flash(swf).
    I tried to pass variable from Flex to Swf. (Call function in Swf also pass variables)
    I did some tourital on google by using SWFLoader, which works fine.
    BUT the AS code in SWF must in MAIN FRAME.
    I need put my AS code by using DOCUMENT CLASS.
    BUT when I using Document class, the method is not working.
    The flex cannot find function in Flash.
    PS.I already set main.as class as public
    Hope some one can give some hint.
    I really get a huge headache.
    Many thanks,
    Henry

    myIP wrote:
    > or perhaps more ideal;
    >
    > for(var sVar in flashVars)
    > {
    > i++;
    > //var mcName = sVar.substr(0,3);
    >
    > // create the MCs:
    > duplicateMovieClip(_root.testBut,"medium"+sVar,i);
    > _root["medium"+sVar].testText.text=sVar;
    > _root["medium"+sVar].mcName = sVar.substr(0,3);
    >
    >
    > // assign the function to each created MC:
    > _root["medium"+sVar].onRelease = function()
    > {
    > trace(this.mcName)
    > _root[mcName]._x=0;
    > }
    > }
    >
    thanks but this does not work.
    I think that the problem is that the variables defined in the
    for loop do not exist in the scope of
    the function.
    when the MC is clicked, and the onRelease function says:
    _root[mcName]._x=0;
    the variable "mcName" is empty.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Obtain score data from published C3 swfs

    I am working with courses built of swf files, including some
    Captivate quizzes, running in a custom player and deployed on an
    LMS running SCORM 1.2. I would like to access the scores from the
    Captivate quizzes and incorporate them into an overall score, to be
    submitted to the LMS through the player.
    Does C3 allow way to access the score data from a published
    swf? I am aware of the email intercept method for C2, which
    requires a submit button, and this is not acceptable. The only
    other way I can imagine for a C2 piece is hacking the LMS calls
    from the Captivate pieces - not attractive.
    Thank you in advance...

    Captivate 3 does not allow access to score data. In SCORM,
    any scoring logic, including cumulative scoring, is a function of
    the LMS, so if your LMS doesn't do that, you are indeed reduced to
    hacking your own solution.
    The e-mail intercept is the most straightforward method, so
    if that's not an option for you then your only hope is to either
    try to hack into the SCORM communication (which seems the most
    approachable, since that all happens in Javascript that is readily
    viewable) or into the Flash variables Captivate uses to track
    scores internally in a movie.
    The latter option would require some fairly heavy Flash
    coding experience and you'd be very much on your own trying to
    figure that out. Some pointers might be found by perusing this
    thread:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=469&threadid =1313339&enterthread=y

  • Inserting swf within a swf

    I am creating a Captivate project, basically, as a shell with
    5 slides. Within each slide, I would like to insert swfs that I
    have previously published. As a result, each of the 5 slides will
    play while the embedded/inserted swf plays within. Have you ever
    tried to do this? It seems to work only if I don't include a
    skin--but I would like to include a skin on each of the swfs that I
    have inserted.
    Any ideas? Thank you.

    quote:
    Originally posted by:
    jdmosley
    How do you revert a project back to Captivate 3 when you hit
    a Captivate 4 limitation? Is there a simple way? I made a ton of
    changes in Captivate 4 and don't want to have to re-do them with
    the previously saved Cap3 version of the project. Thanks!
    You could copy/paste the slides from CP4 to CP3 - we just did
    that with a project. It doesn't retain all the slides settings (I
    think the buttons / goto slide etc) needed to be configured again,
    but it still beats having to redo the project from scratch in CP3
    ;o)
    quote:
    Originally posted by:
    isv2009
    Thanks for your reply.
    It seems to work whenever the embedded swf does not have a
    skin... and not work with a skin on it. Have you tried both cases?
    Sorry no I haven't tried this with swf's with skin. I just
    saw that your original question actually stated that, but I missed
    that part. I would imagine that a skin with a second playbar could
    mess things up in Captivate.
    If you have Flash skills an idea could be to make a simple
    "loader shell" which loads the animation you wish to import. That
    way the levels of the two playbars would be seperated even more and
    perhaps it would work.
    /Michael

  • Does inserted swf reflect changes when Cap movie is changed?

    I have several swfs in my Presenter presentation. If I make changes to the Captivate movies (the source file for the swf), then republish them, will the inserted swf update automatically? If not, can they be updated without having to delete them then insert them again?

    Unfortunately Leeann, an updated Captivate file will not automatically replace or update the swf you imported in the PowerPoint environment using the Presenter feature.  And simply replacing one swf for another gets pretty dicey with Captivate, especially earlier versions of Captivate because of multiple files that are created as a result of Captivate's publishing process.
    However, if you've published your Presenter content locally to your computer, then you might be able to try the following:
    Open your project folder where you've published your content to your computer.  From there open up the data folder; nested within that should be the resources folder.  Once inside the resources folder, you should see all the swfs you imported earlier.
    Run each swf by double-clicking so that you can see what swf corresponds to your Captivate material, and make note of the file name.  The idea here is to use the same file name for the existing swfs in the resources directory and use that information on the updated files that you republished from Captivate.
    Of course your individual results may vary, so I'd tread very lightly here...but you can give that a shot and see if it helps any.
    Regards,
    Rob
    www.robrode.com/yabb/

  • Using Captivate variables

    I have just created a course that uses Captivate Variables, after I publish a course and go through the slides for a split second at the start of the slide the captivate variables text changes from the Captivate field name to the actual variable. Is there anyway to stop this happening?

    Hi there
    Indeed there are a couple of different ways.
    The simplest is to ensure that AS3 is your ActionScript setting. Click Edit > Preferences > Project > Publish Settings for that.
    More complex is by masking it. Basically you insert something to cover it momentarily. An Image or Highlight Box usually works. Then you adjust the timing and placement accordingly.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Any way to disable quiz click boxes from a parent SWF?

    We've got a parent SWF that serves as a navigational shell, allowing users to move between different Captivate slides which are essentially embedded SWFs. Some of these SWFs are Captivate hot spot quizzes. We've run into a fairly significant issue - when a Captivate slide has a click box, it sets up an event listener for that box. Unfortunately, when a user moves off of that SWF, the event listener is still in place (note: we're not actually unloading the SWF, we're simply hiding it and showing the next SWF). Once a user clicks into the new SWF, the following exception gets thrown:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at captivate.veela_as3::rdClickHandler/CheckSpriteClick()
    at captivate.veela_as3::rdClickHandler/CheckAllClicksDown()
    at captivate.veela_as3::rdClickHandler/onMousePress()
    We've narrowed this down to the click boxes and the event listeners associated with them. I need to know if there's some way that our parent SWF can call into the Captivate quiz SWF in order to disable those click boxes once the user moves off of the SWF. I know that we can disable them from within the quiz itself using an advanced action, but I'm just not sure if the same can be done from an external SWF (ideally, we would just call an advanced action from the parent SWF - I have no idea if this is possible).
    Any help would be much appreciated.
    - Terence

    First question, why are you simply hiding and not unloading them?
    If you can hide, I am assuming through a visible false or alpha = 0; then it seems like you would have the ability to relocate them as well, and since the loaded swf is housing its own buttons and hit areas they would move with their parent...
    So a cheap fix if you can access the objects would be to move them out of view, like to
    .x = -5000
    .y = -5000
    That might work...and might be the easiest way to "Re-add them to the stage without losing info, I am assuming the hide and not unload is for keeping score or something?
    You could then move them back to 0,0 if you needed them again...
    might help you

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • How to Restart a SWF movie (from in the SWF)

    Hello all:)
    My designer has a flash movie that is heavily actionscript
    (it has only 1 frame on the timeline!) Is it possible to create a
    button that will either replay the movie from the beginning
    (ignoring any input info) or refresh the HTML page it is on so the
    movie starts over? We can't use the "Go to Frame 1" action because
    it does not clear the variables already input (it's already in
    Frame 1).
    I appreciate any help anyone can come up with...
    Again, we need to either refresh the HTML page the SWF file
    is on from inside the SWF, or make the SWF play again from scratch,
    erasing any variables it may have.

    Delete it.

Maybe you are looking for

  • Using led tv for display

    I have been using a 32 inch lcd tv as a monitor with no problems. When I tried with an led tv same make same size I could not get the display size anywhere near as good and the colours were poor as well. Has anyone else had this problem.

  • No ALV output

    Hi ALL my Field Catalogue has been built and i am using the pollowing code on PBO module of screen   IF g_container IS INITIAL.     CREATE OBJECT g_container       EXPORTING         container_name = 'GRD_CNTRL'     EXCEPTIONS         cntl_system_erro

  • Extended Notification in Workflow issue

    I have used extended notifications to send user decision to Outlook, when PR is created user decision step shows as "Ready" under status in SWIA. When I run the report SWN_SELSEN with selected check box "No time check during send". Email is not trigg

  • Why won't menu display?

    package test; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem;

  • Individual product silent installations

    Hi, I work at a university, and there are a number of departments that make use of adobe software, ranging from the master disk cs5.5 to just photoshop cs4. My problem is that with the deployment solution we are using, we are trying to limit the numb