Passing Variables to A4 Flash user

Hi all

I searched online for many times and have made many attempts, using Flash and Captivate 4, but I had NO chance, and I'm challenging my brain on it. It is a big project at work and I really need help I can get.

I need to access my USER Captivate variable created from a Flash animations. I tried to use Javascript, but I get an error in Flash due to global settings. With thousands of employees, these settings are not an option.

What I am trying to do is run a random function in AS2 (which works fine) and then pass the result of Flash to Captivate. Each path that I tried (_root. NombrAl, parent. NombrAl, _root.movie.Randomnumber, etc.) did not work and I can't seem to understand what Miss me.

Any help or advice would be greatly appreciated! Thank you very much!

Daniel

P.S. I'm still a user AS2 and have not yet learned AS3. I have no longer works in this all day and have not had the chance. I'm sorry.

If you are looking just to pass a random number in Captivate, then you can use the widget to this thread: http://forums.adobe.com/message/2031010#2031010

If you try to pass regular values of Flash, then it should be fairly simple as well.

I just want to be sure - you have a Flash Animation inserted into a Captivate slide and you wan't to have this animation 'send' some data to Captivate right?

If Yes, then all that should be required is to create a userdefined in Captivate variable - for example v_myVariable. Flash, you use _root.v_myVariable = valueFromFlash.

This really should be all. You must create the variable defined by the user in Captivate first well. Flash can not it creates for you. You can also try and assign a default value to the variable in Captivate (v_myVariable = 0) while you are sure that the variable of Captivate is reported correctly.

Good luck; (o)

/ Michael

Visit my Captivate blog with tips & tricks, tutorials and widgets.

Tags: Adobe Captivate

Similar Questions

  • Pass Variables from JavaScript CS3 ActionScript

    Hello

    I can't understand what I'm doing wrong and I need help . Who better to ask than legal experts?

    I have everything works fine so far except for this actionscript. I use CS3 Flash with ActionScript, CS3.

    I have 5 buttons in flash.
    I try to perform the following tasks
    1. ensure buttons with effects in flash - done
    2 put the button in the down position based on the Web page that the user is on.
    To perform this dynamic, I apparently have to use 3 different languages, PHP, JavaScript, ActionScript.

    I've been playing with this during a week and can not understand. I have the rest of the scripts tested and verified to work.

    Here is the link to my test page
    http://www.spectacularstuff.com/PHP-test/inProgress/php-URL-detection.php

    Here is my code for the test. (This does not include the buttons. It is simply to test to see if I'm passing variable.)

    PHP code to detect the file name.
    <? PHP
    function curPageName() {}
    Return substr ($_SERVER ["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"],"/") + 1);
    }
    ECHO "is the current name of the page detected by PHP". curPageName();
    ? >

    The JavaScript Code to pass variables to the Flash
    < script language = "javascript" src = "swfobject.js" >
    var so = new SWFObject ("php - url - detection.swf", "php-url-detection", "550", "400", "9", "#FFFFFF");
    so. AddVariable ("currentpage","<? php echo curPageName();? >" ")
    < /script >

    ActionScript Code to get the JavaScript Variables and display them in flash.
    Dynamically create text fields
    var tf:TextField = new TextField();
    tf.autoSize = TextFieldAutoSize.LEFT;
    TF. Border = false;
    addChild (tf);

    var tf2:TextField = new TextField();
    TF2. AutoSize = TextFieldAutoSize.LEFT;
    TF2. Border = false;
    addChild (tf2);

    Create the variable to write to the page
    var myStr2:String;

    first attempt to put the variable on the page.
    This LoaderInfo must be capitlized. An error occurs if not.
    var paramObj:Object is LoaderInfo (this.root.loaderInfo).parameters.currentpage;.

    second attempt to put the variable on the page
    var myStr:String = this.root.loaderInfo.parameters.currentpage;
    trace (paramObj);
    trace (myStr);

    If (myStr is nothing)
    {
    myStr = "Flash is not reading JavaScript variables.:(";).
    myStr2 = "";
    }
    on the other
    myStr2 = "" Flash read the JavaScript variables! :)) ' "

    TF. Text = myStr; Display the URL on the page
    TF2. Text = myStr2 //Display Flash is happy

    [- End of Code-]


    Help, please.

    Thank you in advance.

    Wayne

    I found an answer to this for someone looking for an answer. I wrote the answer in another forum:
    http://Board.flashkit.com/Board/ShowPost.php?p=3946455&postcount=31

  • Pass variables flash server - the best way?

    I use URLVariables right now to pass variables from flash to the server via the php script and update a database lines.

    var variables: URLVariables = new URLVariables();

    Currently about 9 variables are sent which are then updated in the mysql database.

    I read that the database via php calls are the main source of traffic, or at least one of them. I don't know from 100 to 500 concurrent users.

    Obvously I need expert help in the medium term, but I would like to give things a go myself.

    I've read about amfPHP, but I don't seem too well.

    Also, I can cut down the amount of php by user calls as I have anywhere for many games and mini exercises.

    BUT it is possible to get these nine variables in an object and pass the object. An object would be faster than going 9 variables and would this object placed in a cell in the mysql database.

    What would look like this? For now I can read my db easily, but if there is an object, how do you read that?

    -What is serializning? Passing an object and all data is converted to binary etc...

    As you can see, I'm a little lost.

    Thanks in advance.

    If you use a URLVariables object, then you are only passing an object even when that. I leave which, as you have. You can use Fiddler (I prefer Charles) or Charles to see all your data being passed - he did do this kind of stuff much more enjoyable.

    Serialization is simply the process of taking any Flash object, like a table and turn it into a format (such as plaintext) who can read the script on the server side.

  • Pass Variables from Flash to PHP

    Good day nice webmates. I hace this situation:

    I created a couple of text fields in flash "check in" and "check out" to a small reservation system, where the user is supposed to enter data (two variables) and then those two dates should go to the next page of PHP (which is already done) and work with this date and other new variables... but I'm not who is the best way to "transfer" these variables of the flash in the php file...

    I would appreciate your answer, this is a very urgent question... Thanks in advance!

    Citations are missing inside of $_POST. It should be $_POST ["checkin"]

  • Problem passing variable from PHP to Flash

    I'm moving a single variable from PHP to Flash. However, I can't quite make it work.

    In a PHP file named data.php, I use:
    "$query = SELECT SUM (Debt) As Total OF THE debtclock;
    $result = mysql_query ($query);
    $debt = mysql_result ($result, "Total");
    Print "debttotal = $debt";

    In Flash 8 Actionscript, I use:
    loadVariables("data.php","0");

    If I understand correctly, this should make the variable available in Flash debttotal.

    Can someone tell me where I'm wrong?

    Try this:
    loadVariables ("data.php", _level0);
    The 2nd parameter specifies the target that receives variables, '0' is not a valid value for this. With _level0, variables will be found in the root timeline, so you can access it with _root.debttotal (from _level0) or _level0.debttotal (on a different level than _level0).

    Welcome,
    blemmo

  • Passing variables between LabVIEW and TestStand

    Hello

    I'm just learning how to use TestStand and although there are a multitude of resources available, I always find me at a loss on how to pass variables between TS and LV, leaving me to think that there is one fundamental thing that I'm missing which is likely, given that I have a weeks experience with LabVIEW and a days of experience with TestStand.

    I took a glance to the example of 'Clusters' to the Code Modules in TestStand examples (I use TS 2016 if it matters) because I thought it would be quite ideal for what I hope. In this case, I hope to be able to pass a string (a file path) to LabVIEW and VI power take this string and use it as part of an order for the Exec.VI system.  Then, I would be able to pass strings back to TestStand to show the user if an error occurred, but I thought I should get the first part of work.

    I guess my question is what do I have to wait to see in clusters to the example of the Modules of Code? The Watch window displays all defined variables premise on which has the ContainerOut in the Variables pane, but I don't see any kind of update on facades (VI1.vi and VI2.vi) LabVIEW code. Should I be?

    I looked at a few other discussions of the forum here and here, as well as the document of the basis of knowledge here, but could not recreate their solutions. It seems that the connector pane would be a viable way to go, but I'm not sure on how we create and use effectively. According to this document , it makes it seem like it should be simple enough to makes these terminals, but I am still missing a key step. I was able to follow all the steps on the knowledge base document and run the sequence, but then had no idea if it worked or not; I have the report show me the values of the variables I put, but I have no idea whether or not he actually did anything with the LabVIEW VI, or how I could see that.

    Please let me know if you need further information or clarifaction everything I ask.

    Thank you for your time,
    JColvin

    Digilent, a company of National Instruments

    If you want to enter values, you must create a vi for instance dialog box

    The OK button will allow new values to pass to the output terminals.

    A Cancel button will pass just the original through the output values without alteration. The VI will close when either the OK button or cancel were pressed.

    Concerning

    Ray

  • Pass variable header OAM at the Apex and read it in application of the Apex

    We have integrated access Manager Oracle 11 GR 1 material with Oracle Apex 4.1. OAM-Apex integration works very well. Now we want a variable header additional to pass to the application of the Apex of the OAM. This new header variable will be the user's sAMAccountName in Active Directory. OAM is integrated with AD and AD successfully users access the applications of the Apex.

    The header three variables that are set up in OAM right now are:
    Name of the variable header value
    1 OAM_REMOTE_USER $user.userid
    2 OAM_REMOTE_USER_EMAIL $user.attr.mail
    3 OAM_REMOTE_USER_GROUPS $user.groups

    We need a variable to page header as mentioned below:
    The header variable name: OAM_SAMACCOUNTNAME
    Value: $user.attr.samaccountname

    The new header variable has been added in the file dads.conf of the OHS server as shown below:
    = dads.conf =.
    ...
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER_GROUPS
    PlsqlCGIEnvironmentList HTTP_OAM_REMOTE_USER_EMAIL
    PlsqlCGIEnvironmentList HTTP_OAM_SAMACCOUNTNAME
    ...
    ===============================

    But we are not able to read the value of this attribute in the application of the Apex.

    The application of the Apex, there is a text box that displays the value of this header variable. This text box is attached to the following stored procedure call to retrieve the header variable:
    ===================
    Start
    : P1_HEADER_VALUE: = owa_util.get_cgi_env ("HTTP_OAM_SAMACCOUNTNAME");
    end;
    ===================

    The text box displays the correct value only if HTTP_OAM_REMOTE_USER is passed to the get_cgi_env method, but shows nothing when HTTP_OAM_SAMACCOUNTNAME is passed to the same method.

    Please let me know if Miss me some configurations to pass the variable to anna64 HTTP_OAM_SAMACCOUNTNAME OAM to the Summit.

    Thanks for your help.

    Hi 900202,

    You can run

    begin
        sys.owa_util.print_cgi_env;
    end;
    

    in the SQL commands to see all headers. Maybe OAM_SAMACCOUNTNAME went without an HTTP_ prefix or its value is null, because there is a configuration problem in OAM.

    Kind regards
    Christian

  • How to pass variables by using the command line when starting from a native application ActionScript

    How to pass in variables or arguments to start using the command line when starting a native ActionScript application? For example, I have my app MySweetWidget call and it was compiled with Adobe AIR runtime in captivity so now I have MySweetWidget.exe.

    In the command line, I call MySweetWidget.exe and would like to pass in variables or properties of the application. I guess that these variables are read from the loaderInfo.parameters object.

    Please let me know if the Adobe AIR runtime supports passing the parameters to native execution. If so, I would like to help determine the correct format of how pass variables. So would you want to read those loaderinfo.parameters object?

    Thank you

    Jeff

    I found the answer to my own question:

    Yes, it's a feature supported. It is documented on the following page:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/desktop/NativeApp lication.html #event:invoke

    When you subscribe to the event from the NativeApplication invoke it will subsequently send the event and you read the table of e.arguments object to get the start in the native application arguments.

  • pass variables between classes

    Hello! I'm new to flash actionscript and I make a small game right now. I thought to create separate movieclips for each level of play and their assigned separate classes is cleaner and easier to code.

    for example: -.

    level 1 - level1.as

    level 2 - level2.as

    Level3 - level3.as

    My problem is how to pass variables (such as health, score, etc.) to a higher level?

    Please help I'm stuck on this and I have searched a lot but couldn't get the right answer...

    Oh, and I use cs3 flash with actionscript 3.0

    I don't think you really understand what are classes and movieclips.

    MovieClips are display objects; your character, the enemy, elements, platforms< these="" will="" be="">

    Classes can be used to define new elements or extend those which already exist, such as an object or a MovieClip.

    For the purposes of making a game, I would separate levels of executives.

    do level 1 on a frame labeled "level 1".

    and level 2 on a frame labeled "level 2".

    variables will carry an image to the image.

    Use gotoAndStop (frame_label) to switch between levels

    * Make sure you use stop(); on the first image to prevent bike between the frames.

    * You can make the frames between each level that has the code "gotoAndStop(previous level)" to prevent people to hit 'play' on the swf file and the cycling through your levels.

    You can also search for SharedObjects as a method of storage of variables even after that the swf file is closed.

  • Passing variables ActionScript 2 using javascript

    Hello

    I tried to pass variables to a flashdrive with on the page refreshes. In doing my research I fell I cross things like externalinterface and others.

    I found a javascript + actionscript who spent ariables flashing without updating the code page:

    I have therefore 8 flash with actionscript 2.0.

    HTML:

    <SCRIPT LANGUAGE=JavaScript>

    <!--

    function callJavascript() {}

    Mathias var = inputValue.vars.value

    window.document.myMovie.SetVariable ("testValue", Mathias);

    }

    ->

    < /SCRIPT>

    <object classid=' clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 ' codebase="""http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8, 0,0,0" " " width="550" height="100" id="myMovie" align="middle"> "

    <param name="allowScriptAccess" value="sameDomain" />

    <param name="movie" value="setplay.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffcc00" /><embed src="setplay.swf" quality="high" bgcolor="#ffcc00" width="550" height="100" name="myMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </body>
    <p>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=button value="Pass the variable to Flash" onClick="callJavascript()">
    <form name="inputValue">

    <a href="javascript:callJavascript()"> flash one</a><input type="hidden" name="vars" value="1.flv"/>
      </form>
    </html>

    I have a flash drive with a movie player instance name of myVid:

    ActionScript:

    var testValue:String = "";

    watchCallback = function (id, oldval, newval): String {}

    result_txt. Text = newval;

    myVid.play (newval);

    return newval;

    };

    _root. Watch ("testValue", watchCallback);

    The code gets the variable var in the html page. Pass vars to actionscript using javascript, displays text on result_txt and play flv video with similar name to a variable passed.

    The problem is:

    I have several a href links that I would like to have the different variables that they would pass to the flash drive.

    < a href = "javascript:callJavascript ()" > flash < /a > < input type = "hidden" name = "var1" value = "1.flv" / >

    < a href = "javascript:callJavascript ()" > flash two < /a > < input type = "hidden" name = "var2" value = "2.flv" / >

    < a href = "javascript:callJavascript ()" > flash three < /a > < input type = "hidden" name = "var3" value = "3.flv" / >

    < a href = "javascript:callJavascript ()" > flash four < /a > < input type = "hidden" name = "var4" value = "4.flv" / >

    How can I change the code so that if someone clicks on a flash of the value of var1 is passed to flash.

    and if two flash is clicked var2 are passed to Flash.

    Thank you.

    http://circlecube.com/2008/02/ActionScript-JavaScript-communication/

  • Can I get several variables defined by the user in a slide?

    I used the variables defined by the user in the past to collect information on the results of the quiz, as well as for the certificate of quiz.  I would like to re - use variables in a few areas.  in my project, a slide invites you the user name (variable, I created), second will prompt you for the user ID (variable, I created).  I would like a third screen that reads 'Confirm your previous entries', and I want to show him the two variables.  I see only one.  Is it possible to get them both to display?

    I also want to re - use both in the quiz at the end certificate.  If I change the certificate in Flash widget, will be the two variable display?

    This quiz brings to me by email (we have no LMS).

    Any suggestions?

    Cyndi Nagel

    Hi again

    You reduce the screen shot before you download? You are right. It's barely legible.

    If the variables are inserted into more than a legend, double have you checked the timing? Maybe something is pause the slide before one of the legends has a chance to appear.

    See you soon... Rick

    Useful and practical links

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • Need to pass variable SWF * to * HTML

    Hi all, brand new to Flash and I'm used to working with a model Flash written earlier. In this model, there is a search box. My goal is to get some someone puts in this little white search box on my Coldfusion page for further processing. I want it because I know nothing of Flash (yet) and want the variable I need to work with to leave Flash quickly as possible so that I can use it in Coldfusion where I am comfortable on a deadline.

    Here is the code that I have which produces at least a promising URL in the browser. After a lot Googlin' I managed to set it up:

    on (release) {}
    Search = this. SomeName.Search; <-THIS SHOULD BE MY VARIABLE of RESEARCH
    getURL (" http://www.test.com/web/search.cfm", "_top", "GET");
    }

    In the browser URL, which in fact produces:

    http://www.test.com/Web/search.cfm?search=

    .. What seems promising. But notice, the SEARCH variable is empty.

    I need it as well as the SEARCH comes back equal to what I put in the white search box bit.

    Thus, for example, I need to go out like that (if I were looking for the word 'Cats'):

    http://www.test.com/Web/search.cfm?search=cats

    Once it's there, it's elementary to enter me the URL and work with it in Coldfusion.

    I've tried everything. Google is full of people trying to pass variable * in * SWF in HTML, but not the reverse. At least what I can say.

    Anyone have any ideas? Thank you!

    Dave

    That proved to be the answer of $ 1 million. I came back to report when I read your explanation which reads verbatim what it is and how to solve it. I didn't know there was a tool to help establish a path within Flash, however, it's cool.

    My Coldfusion page now treats this Flash thing search requests with happiness.

    That I was (and still am) lack of understanding as a beginner, how to communicate the different parts of a flash project. Layers? Calendar? PUH-lease. I have trouble with Javascript and never even touched C, which are both the syntax of Actionscript of Flash almost.

    Thanks for the reply! There are a few other homeless looking for this same answer so I hope that this Exchange winds in Google soon.

    Just to be complete on the subject, here's what the end result looks like on my end now (real URL disguised to protect development innocently):

  • Passing object XML in Flash to ASP.

    Hi guys...

    Is it possible to pass a Variable of object/array of Flash XML to ASP?

    If it is, how to obtain and analyze the object/table XML variable in the ASP file?

    I intend to go with ASP to create an external XML file, and then I'll feed XML to Falsh data.
    Incase of additions or Corrections in the data, once again I'll pass the details of flash to ASP and replace the existing XML file.

    Please help me...

    Thanks in advance...

    - ****



    Thanks in advance...

    - ****

    The XML in Flash class has multiple ways to send data to pages of script on the server side. . Send(),. sendAndLoad(), etc..

    If you want the data sent in the form of XML object and not as a pair key/value as a form post, check if you set the contentType to "text/XML" before using the send() or sendAndLoad() controls.

    Read the XML code directly in ASP will require you to use the Request object.

    Set xml_dom = Server.CreateObject ("MSXML2. DOMDocument')
    xml_dom. Load (request)

    Tim

  • pass variables between form

    Hello

    I use oracle forms 6i.
    How can I pass variables between Forms?
    Consider the scénarion of a login form.
    Once a user logged in successfully, a new form is displayed, where his name is to be displayed
    like '< user > welcome. '
    If name must be past form at the home page login form.

    Is this possible with Oracle?

    Adkins

    Adkins,

    For Global Variables just assign a value to that, and it's initialization. Or you can use

    DEFAULT_VALUE(NULL, 'GLOBAL.');
    

    Make sure that you assign the appropriate value to the global variable before opening the new form.

    And for the parameter, try.

    DECLARE
         Pl_Id PARAMLIST;
    BEGIN
         Pl_Id := GET_PARAMETER_LIST('tempdata');
         IF NOT ID_NULL(Pl_Id) THEN
              DESTROY_PARAMETER_LIST(Pl_Id);
         END IF;
          Pl_Id := CREATE_PARAMETER_LIST('tempdata');
          ADD_PARAMETER(Pl_Id, '', TEXT_PARAMETER, '');
          Open_form('', ACTIVATE, SESSION, Pl_Id);
    END;
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

    Published by: Manu. April 14, 2010 09:16

Maybe you are looking for