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

Similar Messages

  • 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

  • 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

  • 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

  • Captivate 7 Help for creating Variables and Results

    Hi there,
    I'm currently trying to create a results page from the collection of the users selections in a survey that consists of radio buttons that would rate the users skills from 5 different levels starting from "unsatisfactory" to "Outstanding". What I want to do is after the users goes through about 45 selections, a results page will compile
    the Top 10 options that they have selected. Is this possible and how? Thanks in advance!
    I have about 5 different slides with a total of 45 various levels that I will be asking the user to rate themselves. Ultimately, on the last slide I want to compile the Top 10 results and possibly the bottom 5.
    Here are the screen shots of what I'm talking about
    Thanks in advance
    Peter

    Radio buttons widget or interaction has an associated variable, you'll have to use those variables and advanced actions.
    Widgets and Custom Questions - part 1 - Captivate blog  is an old blog post, that explains how to use the variable associated with the radiobuttons widget.
    What do you mean by Top 10?

  • 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

  • Problems with Captivate 5, LMS, and AS3

    I recently acquired Captivate 5 and I am having difficulty getting it to work with our LMS (Plateau). When I publish a presentation to AICC using Captivate 5, and try to load it in the LMS, it doesn't get past the loading page. I've tried it with an existing course, and I've tried making a simple (3 slides with a text box) new presentation in Captivate 5 and I have the same problem. However, the .swf and .htm files load fine when viewed directly. It's only when run through the LMS that I have a problem.
    I  was able to reproduce the problem with Captivate 4 by publishing to  ActionScript3. It worked fine when I used AS2. Unfortunately, Captivate 5  doesn't allow publishing to AS2, so I'm at a loss of how to address  this.
    Any suggestions? Is anybody else experiencing this problem?

    What brand is your LMS?  (What manufacturer)
    What versions of SCORM does it support?
    What version of ActionScript does your LMS support?  AS2 or AS3?
    Have you tried uploading a short Captivate 5 lesson with only a few slides and one or two questions (example: True False question)?
    If you have Captivate 3 or 4, have you tried uploading a lesson in AS2 to see if your LMS accepts it?
    We need more information than just saying: Course not work.
    Test first on very simple short lessons to make sure the LMS will accept Captivate 5 content at all.  If it will play simple content, try more complex content.
    Your issue could be caused by some component or object in the course, or it could be some issue with the LMS.  At this stage we do not know the cause, but it can often be determined by testing with simple projects first and then adding complexity until something breaks.

  • Send Captivate user variables and values to the LMS ?

    Hi all. has anyone got a clever way to send a bunch of Captivate user variables and their values to an LMS (Moodle) so that they end up recorded as part of the SCORM course results or do these need to be explicitly part of a Quiz ? I think that I can setup where I get these values from the Learner so that they take the form of a Quiz (even though there is not a right answser) and set the the LMS settings to record interactions and scores. But is there an easier way to send them via LMSSetValue or even using a widget ?
    Fergal

    You can do it, but it will definitely not be the easiest way to achieve the objective. The accessibility of your web form will determine what you can and can not do.
    The first issue would be populating the field of the form, and that can be achieved by actually re-generating the form programmatically and assigning a value to the html value tag for that field.
    The second issue of "click on the button" is not trivial. If you're in the windows environment you will have to get into intercepting windows messages from the message queues and get the handle of the web browser window and after finding all the relevant information that will change every time this process is performed, is in my opinion not worth the effort.
    I would approach this di
    fferently in looking at what you are trying to achieve in the first place and that is to do directly with the data what the form would've done.
    Forms will either send some e-mail to someone using the submitted data or submit information to a database or write it to a file. If you have a cgi script behind the form you can pass the information directly to the script rather, i.e call the scrip directly in the same way the form would've using your program and skip the form.
    If you can be specific about your objectives and give me details about the forms and detail on the web server type and the capabilities of handling various types of cgi scripts I can give you detailed advice and pointers towards achieving the solution.
    Questions you need to answer:
    What would the form do with the data? (mail, file, database etc.)
    How many fields do you need to submit?
    What type of web server are you running? (IIS, Apache etc.)
    Were is the form hosted, on the www
    or on an intranet?
    Is it accessible to you to change/add scrips to it?
    Hope this helps.
    Best regards
    Jattie van der Linde
    Engineering Manager, Software & Automation
    TEL Magnetic Solutions Ltd

  • 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

  • Variables and Actions in Adobe Acrobat Connect Pro

    Hello Gurus,
    I have been searching different forums around the net for three days, so I am really frustrated since I cant find anything related to this, and I am even thinking if this is really possible.
    I'll try to explain what I wanted to make. I am using Captivate 4 and publishing my content through Adobe Acrobat Connect Pro server. I want to use this "Variables and Actions" Feature of my current version of Captivate. Now, I want that when my user open a training which she is enrolled with, I want her name to appear on the content, like "Hello Irish" something like that, without requiring her to log on her name. How could I make use this variables and actions in captivate 4 to get automatically the "first-name" variable of my user in Adobe Acrobat Connect Pro of my user?
    Is this possible guys?
    Thanks.
    Troy

    Hi,
    I am looking at Connect Pro right now, and as I can see it on its default page it displays the name and lastname of the logged user, moreover, there is a part where you could either invite existing user, or create existing user, as mentioned in this link: http://help.adobe.com/en_US/AcrobatConnectPro/7.5/Using/WS5C856274-D671-4665-9CD0-29868C89 60F2.html so I am thinking If maybe there could be a way where I can retrieve the "first-name"of the user through Variables and Actions of Captivate. Since I am trying to avoid prompting the user to type in their first names, I wish to do automatically, that is if it possible.
    Thanks.
    Troy

  • Global variable in as3.0

    I am doing something with flash cs3,I need to use global
    variable in it ,but there is not global variable in as3.0,can
    anyone help me ,thanks forever!

    There is no global in AS3. But you can make values globally
    accessible by
    using static fields in classes. e.g.
    // MyClass.as
    package
    public class MyClass
    public static var globals = new Object();
    MyClass.globals["hello"] = "world"
    trace(MyClass.globals.hello);
    // and if you want to simulate something a little
    // closer to the AS2 _global object you can drop
    // this into a top level in your class path
    // global.as
    package
    public const global:Object = new Object();
    global["hello"] = "world";
    trace(global.world)

  • If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    Hi there
    See if the link below helps
    Click here
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Captivate 4 and SumTotal 7.2 - SCORM Template

    Hello!
    I'm hoping someone has what I'm looking for.  Up until last week, we had been using Andrew C's SCORM template with Captivate 3 to publish courses to our SumTotal LMS (version 7.2). Everything worked beautifully!
    Now, we've updated to Captivate 4 and are trying to use the same template with Andrew's override behavior, but when we do, it disables any right-click's that we use in the simulation. It also disables the use of variables.
    I tried copying Andrew's override variables and functions to the new Captivate 4 template and I can get everything to work correctly except the right-click. Am I missing something? Or does anyone know if Andrew has released a revised SCORM publishing template compatiable with Captivate 4?
    *The template we have override's SumTotal's rather annoying urge to prompt for completion before the end of the course.
    I have attached the Captivate 3 template we were using, and the one I tried to create for Captivate 4. Any assistance in getting the Captivate 4 one to play nicely with right-click would be great!
    Thanks,
    Kristy

    Hi Kristie,
    Sounds like you have what we have been looking for in order to use Captivate with our LMS. If I could also request the files you mentioned to Sam I would greatly appreciate it.
    Thanks in advance.
    Perry

  • What are the differences between Captivate 6 and 7?

    What are the differences between Captivate 6 and & 7?

    Check the Captivate blog. BTW there were 3 versions of 6 (each with different features), and already 2 versions of 7.
    http://blogs.adobe.com/captivate/2013/12/the-most-awaited-enhancements-in-advanced-actions -and-variables-are-here.html    explains the new features in 7.0.1.
    You can also find articles on the features of 7.

  • Are there a dynamic way for evaluting variables in as3?

    Hi..!
    eval() is a usefull method or function in javascript.. Because we may define our variables via dynamic way..! There are following code is for understanding that how can define dynamic defining variables in javascript.. And Are there a dynamic way for evaluting variables in as3 like following javascript code?
    <script language="javascript1.2" type="text/javascript">
    var trainOfUfo = "...hi earthling...";
    var handleBlade = eval("train"+"Of" + "Ufo");
    alert(handleBlade);  //-- it appears in dialog box text field area "...hi earthling..."---
    </script>
    Gürkan Şahin
    Code Developer
    Turkey

    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

Maybe you are looking for

  • JSF 2.0 portlet development

    Hi there, I'm new in the world of J2EE and I'm trying to develop JSF 2.0 portlets to run on JBoss Portal 2.7. Unfortunately no JSF 2.0 portlet bridge standard exists (only for JSF 1.2), JBoss Portlet bridge still only supports JSF 1.2 and I didn't fi

  • Video wont transfer to iPod Classic

    Why is this? It transfered before, then I wiped it and now it wont transfer, saying those videos aren't compatible with this version of iPod.

  • Report value and batches

    Need to show report which shows stock value and levels on a certain period (previous) by batch numbers. Report MMBE shows current stock levels per batch. Report MB5L shows stock value on a certain period (previous) but with no batch information Is th

  • I can not open new windows

    When I´m on the internet I can not open new windows, not by ¨file new windows ¨ or by ctrl N. New tabs work but no new windows. It worls well with all other browsers.

  • Creating a multiple OS program

    I am trying to create a vi that can run on Mac, Linux and Windows OS.  I would simply have the user select their OS at the outset of the program and then throughout the program when different subvis are necessary for the specific OS a case structure