Access Captivate variable in as3

I used the following code on a frame within an swf that was imported to a CP4 slide. This worked fine in as2. I'm wondering how to write the same code in as3.
_parent._parent._parent.rdcmndNextSlide = 1;
Thanks

Hi,
For one, AS3 uses "parent" and not "_parent". Also, I believe that there are now 4 clips between the slide and your swf. So try with parent.parent.parent.rdcmndNextSlide and if not working try parent.parent.parent.parent.rdcmndNextSlide.
If all fails, let me know and I will give you the exact function to call. It's just that I'm away from Captivate and Flash at the moment.
Whyves
www.flash-factor.com

Similar Messages

  • Is there any way at all of accessing captivate variables from flash?

    Hi,
    I would be grateful for any help on this one.  I have been working in flash and I wanted to know whether there is any way at all of calling/accessing captivate 4 variables from flash (I'm working in flash Cs4 Actionscript 3.0 and I'm trialling Captivate 4, but I just want to know whether there is any way/method of communicating between a flash file and a captivate 4 file, and if so, can this be done with an embedded captivate 4 file/swf).  Surely there must be a way of communicating between the two - they are both Adobe products!
    Thanks for any help, pointers, advice, tips in advance.

    Hi Louon,
    Don't know if this would help you.
    http://blogs.adobe.com/captivate/2009/09/captivate_variables_-_how_to_a.html
    We have many experts here who could give more precise answers.
    Cheers.
    Miguel

  • Accessing Captivate 5.5 variables from embedded SWFs

    Hi,
    as we all know the interface for accessing Captivate variables from embedded SWFs tends to change between Captivate versions. Shortly after it's release we upgraded to version 5.5, and I'm not succeeding in accessing the Captivate variables in my Flash/AS3 code the same way it was done in version 5.
    How should I access the Captivate 5.5 variables (rdinfoCurrentSlide et al) from my SWFs?

    Hi,
    You can use system variable : cpInfoCurrentSlide to show the slide number.
    So you can use text captions to display the value of the variable, the format for displaying the value stored in the variable is $$<system variable>$$. So for slide number use : $$cpInfoCurrentSlide$$, type this in the text caption and then check it in the preview.
    Thanks

  • 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

  • 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 do I access Captivate 6 variables from a playbar?

    I need to access Captivate 6 variables from a playbar. Does anybody know how? I know the parent/child relationship has changed from previous versions.

    Dear Herod,
    Thanks for the request, To program a FPGA target you must have the module
    Labview FPGA. So you cannot directly access the FPGA with LabWindows/CVI.
    But there is a way. Firstly create with Labview a Host VI that communicate with
    the FPGA target and compile this VI into a dll and then call it from CVI program.
    See the following link:
    Can I Use a Programming Language
    Other Than LabVIEW with a Reconfigurable I/O Board?
    LabWindows/CVI support for PXI 7831 R
    Best regards,
    Nick_CH

  • Create User Variable in Captivate via Widget / AS3 ??

    Hello all,
    I have created a widget which will load many variables into Captive from an XML file.  This is great.
    Now i don't want to create 100 user variables in the Captivate variables section.
    Can you create a user variable within a widget/as3 that will load in Captivate WITHOUT creating the var in Captivate first???
    And how might you do this?
    Thank you so much!
    ~ Sean

    I've had some time to figure this out... so here's what I've found.
    When you place a caption on the Cp canvas, it's base AS3 type is an cpItem.  Once you add a Captivate user $$variable$$ from the Variables Panel to that caption, the AS3 type becomes an rdCaptionItem which has an event associated with it... Once the variable value is changed, the caption text is automatically updated.  You don't get that with a regular cpItem caption.
    What does that mean?  It means that the caption type is determined at design time and not runtime.  So even though you can create variables at runtime, you can't update any captions because the type is still an cpItem with no events.  For example, if I wrote the following AS3 code to create the vTest Cp user variable at runtime in a widget:
    cpVariables.setVariableValue("vTest", "Hello World!", true);
    cpVariables.SetVariableLength("vTest", 100);
    and placed $$vTest$$ in a caption, nothing would get updated during runtime because the vTest variable was not created at design time.  The caption is still a cpItem and has no associated event to update the caption text with the newly created variable value.
    How can we fix this?  You can't... as far as I can tell, you need to define the variable at design time in the Captivate Variables Panel.  I thought about updating the caption myself by watching for changes in the variable by tapping into the WidgetEvent.VARIABLE_UPDATED event, but the newly created variable was not in the variableNamesArray for the callback... so there was no way to know if and when it changed.
    Long story short, Adobe needs to provide a better way to make this easier for widget developers... and I don't see that happening anytime soon.  Right now, the ability to create variables at runtime is somewhat useless.  It may be good for inter-widget communication, but there's better ways to do that.
    Jim Leichliter

  • Accessing c4 Variables in Javascript

    How do you pass a Captivate 4 variable (User or System) in Javascript when the published .SWF is embedded in another tool like Lectora or Flash?
    In Captivate, you can set a value into a Lectora variable (VARmyLectoraVariable.set('myvalue');, but I don't know how to access the Captivate variable.
    When run from Captivate, this works:
    Captivate.GetVariable('CaptivateVariable');
    But when the published .swf from Captivate is inserted into Lectora and run, I get a JavaScript error ('Captivate' is undefined).
    How do you reference the Captivate variable in JavaScript when the .swf is not embedded in the Captivate project html file?
    Thank you!

    http://pipwerks.com/journal/2009/06/07/introducing-the-captivatecontroller/
    check this out

  • 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

  • How can I access global variables in a loaded Applescript?

    How can I access global variables in a loaded script, in Xcode, ApplescriptObjC? Basically, I have a global variable defined in my parent script using "property", and I need to modify objects connected to those variables inside of a loaded script.
    Example:
    Parent script:
    script AppDelegate
    property myTextField : missing value
    //linked to a text field object
    tell myScript to myAwesomeHandler_()
    end script
    Loaded script:
    on myAwesomeHandler_()
    myTextField's setStringValue_("The new Xcode is so glitchy ugh")
    //changes value of linked text field of parent script
    end myAwesomeHandler_
    The problem is, the variable is undefined in the Loaded script, and I need it to have the same value as the parent script, and I don't want to pass the variable through the Handler. Any ideas?

    I think want you are looking to do will need to be done in two steps. Because myTextField needs to be a property for the ObjectiveC part of the code you cannot turn it into a global.
    However if you make a temporary variable global assign the string to it in the handler then set myTextField off of it.
    global myTextFieldGlobal
    script AppDelegate 
    property myTextField : missing value 
    //linked to a text field object 
    tell myScript to myAwesomeHandler_() 
    myTextField's setStringValue_(myTextFieldGlobal)
    end script 
    on myAwesomeHandler_() 
    set myTextFieldGlobal to "The new Xcode is so glitchy ugh"
    //changes value of linked text field of parent script 
    end myAwesomeHandler_ 
    I know you stated you did not want the handler to return a value but I have to ask why? Global's, imo, are not a good idea and really should be used as a last resort.
    One other possibility is to pass a reference to the property to the handler. Not sure if that works in AS of if that would satisfy our requirement of not passing the variable through the handler
    <edit>
    Another though have you tried to define the property outside the script?  That is
    property myTextField : missing value
    script AppDelegate
    Not sure if that will work.
    You might also want to have a look at Scope of Properties and Variables Declared in a Script Object

  • Access a variable in the Adobe form for Java Scripting

    Hi,
    I am unable to know how to access the variable in a Adobe form.
    The variable is field of an internal table. My adobe form structure is as follows
    MAIN_PAGE->FORMSET->FirstFORM->EXT.
    in the EXT subform the variable(cust)  exists.
    The cust is in turn an internal table.

    Hello Sreelatha,
    I think we cannot hide a page.  as in, page is the main container.  In a container, we can hide any field using some scripting.  Even though if we hide the field, it is present on page but not visible. 
    but if some logic is there, please let me know.
    Thanks,
    Rakesh.
    Edited by: rakhi966 on Sep 8, 2011 8:54 PM

  • Access custom variable value in web.xml context-param?

    My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
    I was thinking about placing this variable in the web.xml <context-param> section as:
    <context-param>
    <param-name>servername</param-name>
    <param-value>testserver</param-value>
    </context-param>
    I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
    Thanks and Happy New Year!
    Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...

    I found an example from SRDemo that provides what I was looking for:
    String serverhostaddress =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");

  • Why can't I access the variables in my threads?

    hello.
    another question about threads..
    ==========================
    I have an inner class that implements Runnable (i.e. a thread) and has a variable in it. I want to be able to access that variable from outside the thread class so that I can set or retrieve the variable.
    here is the code for the program
    class myClass
         public static void main(String[] args)
              myClass c = new myClass();
         myClass()
              Thread t = new Thread(new myThread());
              t.number = 1;
              t.start();
         class myThread implements Runnable
              int number = 0;
              public void run()
         }//end myThread
    }//end myClassthe line
    t.number = 1;
    where I try to set the number variable to 1 gives me an error (in the MyClass constructor)
    This is my error
    AccessThreadVars.java:11: cannot find symbol
    symbol  : variable number
    location: class java.lang.Thread
              t.number = 1;
                        ^
    1 errorif I put a method in myThread, and then try to call that method from myClass (via t.MethodName()) it gives me that same error telling me it can't find it..
    what am I doing wrong? how can I get access my thread's variables and methods??

    1. Type names should start with an uppercase letter
    2. t is defined as a Thread, not as a myThread
    (which, may I insist, should be "MyThread"), so the
    compiler has no means of detecting that "number" is
    an accessible field of the object... which wouldn't be accessible anyway, cause you're trying to get attributes from your Runnable after wrapping it inside a Thread.
    Why don't you do something like :
    MyThread t = new MyThread();
    t.number = 1;
    new Thread(myThread).start();?
    I bet you don't use Thread's own methods anyway...

  • Accessing the variable in field symbol of nested internal table

    Hi,
    I am unable to access the variable in field symbol.
    The data in field symbol has nested structure. We need to access a variable in nested structure.
    Please find the code below:
          LOOP AT <i_fincorp> into <fs_fincorp>.
            l_madefor = <FS_FINCORP>-data_UI-ZZ0010.
          ENDLOOP.
    datatype of <i_fincorp> is type any table and <fs_fincorp> is type any.
    there is a structure 'data_ui' in <i_fincorp> and we need value of field 'ZZ0010' in data_ui structure.
    But, we are getting syntax error for statement in loop stating "There is no component like 'data_ui' in <fs_fincorp>".
    Can anyone please help me solving this issue.
    Regards,
    Santosh

    So simply access it dynamically
    data: nested_field type c length 50.
    field-symbols <nested_field> type any.
    "build the nested field name dynamically
    concatenate
           'DATA_UI'    "first give structure name
           'ZZ0010'  "then give field name (all in uppercase!)
    into nested_field
    separated by '-'.  "now you have DATA_UI-ZZ0010
    "so assing this nested field
    LOOP AT <i_fincorp> into <fs_fincorp>.
       assign component (nested_field) of structure <fs_fincorp> into <nested_field>. 
    ENDLOOP.
    Regards
    Marcin

  • Accessing container variable of BPM in Message Mapping function

    Hi,
    I have a scenario in BPM where i have a container variable that is used as a loop counter.I want to access that counter defined , every time when i go around the loop and perform certain actions based on that counter. so how can i access that variable in my message Mapping function.

    Hi Sudharshan,
    check these links, hope they give you the required information (i think there is some problem with SDN site, check these links after a while)
    Re: How to use Container Variable across Maps
    Container object in Message Mapping
    Copy value of container (abstract interface) to an other container
    Regards
    Vishnu

Maybe you are looking for

  • Is there no way to update from 10.4.11 to 10.5 series by buying some software online?

    I have had my macbook since 2006, and it's version OS X 10.4.11 i didn't want to buy the new versions cuz it does everything that i want it to... until today when i bought an iphone 4...it won't sync with my itunes, and the itunes that will work with

  • [unixODBC][Driver Manager]Data source name not found, and no default driver

    Hi, I'm running Red Hat Linux 5, MySQL and BOXI 3.1 I try and schedule a report in the CMC and the report fails with the error A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver sp

  • Installing ARD on a new computer

    Hi next week I receive my new laptop I want -must - reinstall all programs Also ARD 3.22 but on my old laptop all the managed computers have passwords after installing the new laptop I must give in all the names and passwords again..... is there a wa

  • Getting the location of non-transperant pixels in an image

    Hello everybody, I'm not really new into java, but I am new at working with images... and since I'm making this game i simply have to ^^, anyway here's my problem: I'm trying to test for collosion (if a part of a character/player hits an object (enem

  • Photoshop CC Lighting Efffects Not Working

    I have seen many people commenting about how the effects do not work... I click on Filter > Render > Lighting Effects And I get nothing... I Get the properties bar but no "lights" tab that I see everyone else get I cannot edit any part of the lightin