Skip navigation
janakamaduranga
Currently Being Moderated

I want to integrate captivate quiz with my flex application.

Jul 14, 2010 10:14 PM

I am new to flex. I want to integrate flex application with captivate quiz. I could not find good documentation for this. Can any one please give me some url to find good documentation or some example. Thank you
 
Replies
  • Currently Being Moderated
    Jul 15, 2010 2:57 AM   in reply to janakamaduranga

    Hi,

     

    Can you please explain what do you want to do with captivate quiz?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2010 12:17 AM   in reply to janakamaduranga

    Hi,

     

    You can access your Captivate swf from Flex or Flash or JS using Captivate variables. There are numerous Captivate system variables that you can access to achieve your purpose. For the complete list of System variables and their description, you may refer to Captivate Help or this page

     

    To access Captivate variables, your Flash/Flex code will have to be something like the one below.

     

    Here, I have an user variable called testing in my Captivate swf and I am accessing it using ActionScript.

     

    ----------------

    import flash.display.Loader;

    import flash.events.Event;

    import flash.net.URLRequest;

     

    var ldr:Loader = new Loader();

    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loadedSWF);

    ldr.load(new URLRequest("var_test.swf"));

    function loadedSWF(evt:Event):void

    {

    trace("testing = "+ldr.content.root.testing);

    }

    ---------------

     

    Note that you have to access the Captivate variable using <loader_name>.content.root.<variable_name>

     

    I hope this helps.

     

    Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2010 11:12 AM   in reply to vrthejas

    I'm interested in using FLEX to create a widget that I load INTO a Captivate project. How would that change this approach?

     

    Also, I've attempted to build a Flex 4 project (sdk 4.1) with this code, and it's generating the following errors:

     

    Description
    Resource
    Path
    LocationType

    1119: Access of possibly undefined property testing through a reference with static type flash.display:DisplayObject
    Cp5Widget.mxml /Cp5Widget2/srcline 26Flex Problem
    1120: Access of undefined property ldrCp5Widget.mxml /Cp5Widget2/srcline 20Flex Problem
    1120: Access of undefined property ldrCp5Widget.mxml /Cp5Widget2/srcline 21Flex Problem
    1120: Access of undefined property loadedSWFCp5Widget.mxml /Cp5Widget2/srcline 20Flex Problem

     

    I've created the var_text.swf by creating a CP5 project that has the variable with a pre-defined value, and a button to set a new value.

     

    Unfortunately, the project doesn't appear to load due to the errors present.

     

    If you could find time to post a couple sample files, it may help us beginners!

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 9, 2011 11:38 AM   in reply to BDuckWorks

    I just wrote a blog on how to integrate captivate with flex. It makes captivate very powerful, In my application I have created UIs and other comps in flex along with captivate

     

    http://riajava.blogspot.com/2011/03/embeding-captivate-files-into-flex .html

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 8, 2011 4:19 AM   in reply to BDuckWorks

    Any updates on how to circumvent the access to undefined property? The suggested method kind of doesn't work (at least when applied literally).

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points