Call a variable from outside a function

Hey everybody!

I am so confused. I hope that someone can help me here! I try to call the variable named "time' go outside a function. '"

Here is my code:

var myXML:XML = new XML();

var XML_URL:String = 'youtube - time.xml";

var myXMLURL:URLRequest = new URLRequest (XML_URL);

var myLoader:URLLoader = new URLLoader (myXMLURL);

myLoader.addEventListener (Event.COMPLETE, xmlLoaded);

var time;

function xmlLoaded(event:Event):void

{

time = XML (myLoader.data);

}

trace (Time);

Here's what my XML looks like:

10 < time > < / time >

Whenever I run the trace (time); outside the service - I get an "undefined" message in the output window.

How can I access the variable " " time "outside my service so I can assign to another variable like this: "

var VIDEOS_SECONDS = time;

Thank you very much for any help!

Timothy

Functions are called, the variables are accessible.

First thing you need to do is to check that xmlLoaded is actually called. Copy your trace statement to test. If you never actually call the .load method on your URLLoader object, as suggested by Colin, nothing will never load.

Second, if your code snippet above is literally everything from an image and run correctly, then most likely your trace statement executes before the XML loading data are completed. URLLoader runs asynchronously, which means that your main code stream do NOT stop and wait until she finishes.

Tags: Adobe Animate

Similar Questions

  • How to call a dll from another dll functions

    Hi, can someone please tell me some examples or instructions on how you go about calling functions from a dll from another dll including the IUR. The two DLLs were created with labwindows cvi.

    Thank you!

    Hi Sinnas,

    You mention that you use a UIR.  A DLL does not have a file UIR as part of it.

    DLL1

    Instead, when you build the DLL first, we'll call it DLL1, you create a header or the files that contain functions that you want to the client code to call.  When you build DLL1, you must export the file DLL1 function for his client to call code header.  Whatever the calling code is (a GUI or another DLL), you must include in the exported DLL1 project headers AND DLL1 .lib file generated when you generate it.

    DLL2

    DLL2 will contain in its project, the header file exported for DLL1, DLL1 .lib file - that gives it the feature in DLL1.  The code can then call any desired DLL1, but as DLL1, you should now have a header file that exports the functions of DLL2 desired HIS client code to call.  When you build DLL2, you create a .lib for THAT DLL file to include in the code of the final customer.

    GUI

    The final customer code will be a few GUI that you create to call DLL2 functions will have the UIR upper layer file.  It will include the exported DLL2 header file and the file .lib DLL2 in his project.  It can then call any function of DLL2.  It is the most clean way to have 2 dll working together.

    NOTE: You can create a GUI to test the lower level DLL1 functions before placing DLL2 in the system.  In fact, it's a good idea to do it - you want to make sure your lower level DLL1 code works properly before construction above it.

    Simple diagram

    Client code (calls to functions of the DLL2 header files) exported

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

    DLL2 (DLL1 function calls exported in header files)

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

    DLL1<--------------------  you="" can="" also="" create="" a="" gui="" that="" only="" calls="" dll1="" exported="" header="" files="" to="" test="" out="">

    A suggestion... I create my dll in debug mode and use them to test my code.  But I also build as static libraries.  When I do the final version of the system, I use static libraries.  They are built with the final executable and don't require additional files to install as do the dll.  When you install your system with DLLs, you must include all THE dll and they must be installed in the folder Windows/System32 of the target computer.

    I hope this helps...

    Judy

  • Is it possible to call a sub procedure event from outside the process?

    Hi all

    I was wandering if it is possible to activate a sub-process of event (started by an event message that is implemented by a 'set interface') by calling interface that seems exposed as a service?

    Or the sub-process of event can be triggered only by an activity that is executed in the same process, where is the event sub-process?

    Hi Clarec,

    If you expose your subprocess of event with an event of boot Message and you have to use a correlation set in the main part of the process, you can call it from outside the process by using the correlation key.

    Dan

  • using a variable outside the function that defines

    Why can't I not use the variable "numOfItems" outside of the function in the code I have attached below? I need to have a variable that retrieves its value in the number of nodes in an xml document and used later to the timeline root, outside the service the xml onLoad, once it has been loaded.



    You are still facing the same problem.

    Track at the bottom of your code tries to trace before your xml file has finished loading. Therefore, you have to wait as well.

    Inside your onLoad

    traceResult();

    And where you have your current track down.

    function traceResult() {}
    trace (numOfItems);
    }

    That should do it.

  • Get a XML variable is passed off function parser (as3)?

    Hello

    I have a basic XML file and a parser in as3.

    So far, I can get it to analyze and track the data from the xml file:

    {

    XML = new XML (e.target.data);

    Var Tester = xml.item;

    trace (tester);

    }

    Everything is good.

    How now to pass this variable to anything outside the xml parser function?  It displays "undefined" if I do:

    {

    XML = new XML (e.target.data);

    Var Tester = xml.item;

    }

    trace (tester);

    I have ttried using a global var - globals.data.tester - and, as above, it works fine when tracing in the service, but not outside.

    My goal is to pass in a bunch of variables of my XML file that I can use anywhere in the flash project.

    Is this possible?

    Thank you for your time and help.

    Shaun

    loading files in flash is asynchronous.  This means that the code does not necessarily perform in the order it appears.  specifically, your trace() function runs BEFORE the control device is set.

    In addition, whenever you prefix a variable with var, inside a function body, you make this local variable to the function.  That is to say, Tester does not exist outside the function where it is defined and, in fact, is not yet defined the next time you call this function (although there was a 2nd time).

    then, use:

    Var test: String;

    function xmlLoaded(e:Event) {}

    XML = new XML (e.target.data);

    Tester = xml.item;

    traceF();

    }

    function traceF() {}

    trace (test);

    }

    or:

    function xmlLoaded(e:Event) {}

    XML = new XML (e.target.data);

    var test: String = xml.item;

    traceF (test);

    }

    function traceF(itemS:String) {}

    trace (itemS);

    }

  • How to choose a listItem from outside the list!

    Hello guys! I'm developing an application on the meetings, and I am experiencing a small problem. The thing is: in the application I need a list to respond to music. Explain better: I want the list to automatically change the selection when the music reaches a predetermined point. As in its stars, the first element should be selected and then when it gets to 10 seconds, It shoud jump to the next, and so. To do the checks on the position of the music, I use OnPositionChanged. It's the portion of code:

    onPositionChanged: {}
    > console.log ("BBBBBBBBBB")
    > >
    > var i = myModel.data (myModel.find(["topic1","1"]))
    > If (mediaPlayer.position > = {i.startTime})
    > listView.select (i, true)
    > console.log ("AAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    > >
    > > }

    In this case, the list takes the data of the dataModel, and the first has the title Topic1 and a property named startTime which in this case, that I set to 1. If I launch the app, when the stars of the music and the first signal from the position has changed is sent, the console displays "BATH", then the check is effective, because the console displays "ADRAR", but nothing happens on the list and the point is not to get selected. I thought it might be an error in the "var I = myModel.data (myModel.find(["topic1","1"]))" part, but then I called console.log ("i.startTime") and the console.displays 1... so the only thing left is the listView.select part... Someone knows how to call a selection of items from outside the component list view?

    Welcome on the support forums.
    I suggest you re-read the API ListView/DataModel carefully.
    to call select, you need the path of the index.
    Data() returns the list item associated with the path of the index.
    Find() returns the index path, you must call select.

    Use a var to store the row, and then use that data() and select().

    and if I can offer a unrelated suggestion, 'i' use only for counter variables, use speaking names for others, for example "row".

  • Call a procedure from javascript

    Hello

    I would like to help on the following please.

    I have a JavaScript in page region 'function and Global Variable declaration ':
    function openUrl(pUrl) {
      window.open(pUrl,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=1024, height=768");
    }
    In the same page one have a number of standard reports. A number of columns in each of these reports sets a link. The binding for all the columns settings are defined as follows:
    Target: URL
    URL: javascript:openUrl('http://#SERVERNAME#:9704/xmlpserver/Publications/Dock_Report.xdo?_xpf=&_xpt=0&_xdo=%2FPublications%2FDock_Report.xdo&_xmode=4&_paramsID_USU=#ID_USU#&_paramsIDCR=#IDCR#&_paramsIDCU=#IDCU#&_xt=DPol_Layout&_xf=pdf&_xautorun=true');
    As you see, the user of the application, click on the link on the column of the report and a popup is generated showing the report. It all works very well.

    My requirement is to call a procedure from the augments that are included in the column link that was clicked by the user of the application.
    #ID_USU#
    #IDCR#
    #IDCU#
    My question is how to achieve this as the url is inside a call to javascript?

    Can I use the Javascritp set in the page to extract the details, and then use javascript to call a procedure?

    Any help, pointers, ideas, everything is welcome.

    Request Express 4.0.2.00.07

    Thank you

    Published by: zooid on 4 April 2013 22:47

    Have you seen this javascript API? http://docs.Oracle.com/CD/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#BGBJHEHG

    It has very convenient function: apex.submit (pOptions);

    Specify the target URL as:

    JavaScript:rowClick('#ID_USU#',_'#IDCRM#',_'#IDCU#');

    Then add a function to your page somewhere:

    function rowClick(idUsu, idcrm idcu){
    
      openUrl(/*url*/);
      apex.submit({request: "SOME_REQUEST_VALUE", set: {Px_ID_USU: idUsu, Px_IDCRM: idcrm, Px_IDCU: idcu}});
    
    }
    

    (Where you have page elements for each of the items that you want to set.

    Then you can have a process of PL/SQL page, under condition of request = expression 1, term 1 = SOME_REQUEST_VALUE

    And do you want to ;-)

  • QML: To access variables defined outside of a list item to in a list component

    Consider the following QML:

    import bb.cascades 1.0


    {Page}
    content: {container
      {Label
      ID: topLabel
          text: «One»
          textStyle.size: 100.0
          textStyle.color: Color.Blue
      }

        Button {}
          text: 'change two.
          onClicked: {}
          topLabel.text = "Two"
        }
        }


        {To ListView
          objectName: "testList".

          listItemComponents:]
          {ListItemComponent}
            type:
            Button {}
              text: "change to three.
              onClicked: {}
                topLabel.text = "Three"
              }
            }
          }
        ]

    maxHeight: 300.0
    }
    }
    }

    The pages defines three controls: a label, a button, and a listview. In turn, each listview item also contains a button.

    By clicking on the button below the label successfully changes the text of the label through this code:

    onClicked: {}
    topLabel.text = "Two"
    }

    However, the execution of a similar code from the button in the listview control fails with this error:

    Test.QML:28: ReferenceError: can't find variable: topLabel

    Apparently, the variables defined outside the listview are not directly visible since in listview items.

    Y at - it available to access syntax?

    Thank you

    Jamie

    OK, we have identified a work around that should solve your problem, as suspected, she was reported linked so a redefinition is necessary.

    At the high level of the Page of the page, add the following line so that the label is accessible.

    {Page}
    ID: topPage
        
    onCreationCompleted: {Qt.topLabel = topLabel ;}
            
    Then, in the button definition, you can reference the Qt.topLabel in the list.

    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    Button {}
    text: "change to three.
    onClicked: {}
    Qt.topLabel.text = "Three";
    }
    }
    }
    ]

    Hope that solves your problem. Of course, it worked on my system.

    Graham

  • Join the URI from outside the network

    Hello

    I have a problem to make a call from outside the network of phones internal using URI.

    If I test a call from outside (with Jabber video) to my URI ([email protected] / * /), highway E logs show:

    TVCS: event = "Call rejected" Service = "SIP" Src - ip = "IP address" Src-port = '5060' type-aliases-Src = Src-alias "SIP" = "sip:[email protected] / * /" Dst-alias-type = "SIP" Dst-alias = "sip:[email protected] / * /="Call-serial-number="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeee" Tag "zzzzzz-Davis-0000-1234-xxxxxxxxx" detail = 'Not found' Protocol = "TCP" response code "404" = Level = '1' elements UTCTime = "2015-06-15 13:26:03, 214"

    If I check the call history, I see that my test call is not crossed:

    Source: sip:[email protected] / * /

    Destination: sip:[email protected] / * /

    Type: Non-traversal

    Protocol: SIP H323<->

    Status: 404 not found

    Step 1
    Area band bandwidth default node
    Alias 1 SIP of source:[email protected] / * / (Url)
    Target alias 1 sip:[email protected] / * / (Url)
    SIP protocol
    Address AAA. ABM CC. DD:5060
    TCP transport
    Not found a reason
    Cause 404

    Step 2
    Crossed bandwidth of Zone node (server)
    Target alias 1 sip:[email protected] / * / (Url)
    SIP protocol
    Address AAA. BBB. CCC. D:25793
    TLS transport

    Step 3
    Crossed bandwidth of Zone node (server)
    Alias target 1 [email protected] / * / (H323Id)
    H323 Protocol
    Address AAA. BBB. CCC. D:1719
    Unsaved pattern
    Destination not found cause

    My configuration:

    * X VLAN: CUCM 10.5 10.5 unit, 10.5 CUPS, ExpressWay C X8.5.1, highway E X8.5.1 (1 of 2 network adapter), DNS server, ad server

    * VLAN DMZ: highway E (the second network card)

    * Outside: External DNS

    (1) ExpC

    (a) areas

    Name Type Calls Bandwidth used Status of H323 SIP status Status of search rule
    DefaultZone Default zone 0 0 kbps On On  
    CEtcp-[CUCM_PUB_IP] Neighbor 0 0 kbps Off Assets The search rules permit: 1
    CEtcp-[CYCM_SUB_IP] Neighbor 0 0 kbps Off Assets The search rules permit: 1
    Neighbor CUCM Neighbor 0 0 kbps Off Assets The search rules permit: 1
    Covered area (client) Customer journey 0 0 kbps Assets Assets The search rules permit: 2
    Covered area (UC) Unified Communications crossing 0 0 kbps Off Assets No rule search configured

    Jabber works both inside and outside.

    Details

    Name: Nearby CUCM
    Type: neighbor
    Hop count: 15
    H.323 Mode: Off
    SIP mode: on
    Port: 5062
    Transport: TCP
    Accept records submitted by proxy: enable
    Media encryption mode: Auto
    Support of ice: Off
    Authentication policy: do not check the credentials
    Trust of SIP authentication mode: Off
    Peer 1 address: CUCM_PUB_IP (-online green)
    Address of the peer 2: CUCM_SUB_IP (-online green)
    Profile area: custom
    Monitor the status of peers: Yes
    Call signalling routed mode: always
    Automatically respond to the H.323 research: Off
    Automatically respond to the SIP research: Off
    Send empty INVITATION of interoperability calls: on
    The poison SIP mode: Off
    Encryption of SIP mode: Auto
    Mode SIP REFER: forward
    Limit mode line SIP SDP attribute: Off
    Length limit of SIP SDP attribute line: 130
    Band MIME multipart SIP mode: Off
    Band of SIP UPDATE mode: Off
    Interworking SIP research strategy: Options
    SIP UDP/BFCP filter mode: Off
    SIP UDP/IX filter mode: Off
    Duo SIP video filter mode: Off
    Address record SIP road type: IP
    Proxy SIP-require header band list: white

    Name: Covered area (client)
    Type: Customer journey
    Hop count: 15
    H.323 mode: on
    Protocol: enforcement
    Port: 6001
    SIP mode: on
    Port: 7003
    Transport: TLS
    TLS check mode: Off
    Accept records submitted by proxy: enable
    Media encryption mode: Auto
    Support of ice: Off
    The poison SIP mode: Off
    Authentication policy: do not check the credentials
    Customer settings stimulus interval: 120
    Peer 1 address: ExpE_IP (-online green)
    Address of the peer 2: expe.mydomain.fr (-online green)

    Name: Trasversal area (UC)
    Type: Course Unified Communications
    Hop count: 15
    User name: qwerty
    Password: *.
    SIP port: 7001
    Accept records submitted by proxy: enable
    Support of ice: Off
    The poison SIP mode: Off
    Authentication policy: do not check the credentials
    Customer settings stimulus interval: 120
    Peer 1 address: expe.mydomain.fr (-online green)

    (b) research rules

    Priority Name of the rule Protocol Source Authentication required Mode Type of rehearsal Pattern string Behavior model On match Goal
    45 CEtcp-CUCM_SUB_IP FT3 Any NO. Alias matching Prefix CUCM_SUB_IP; Transport = TCP Leave Stop CEtcp-CUCM_SUB_IP
    45 CEtcp-CUCM_PUB_IP FT3 Any NO. Alias matching Prefix CUCM_PUB_IP; Transport = TCP     CEtcp-CUCM_PUB_IP
    50 LocalZoneMatch Any Any NO. Any alias       Continue LocalZone.GetDaylightChanges
    100   Any Any NO. Any alias       Continue Covered area (client)
    100   Any Any NO. Any IP address       Continue Covered area (client)
    100   Any Any NO. Alias matching Regex (3\d{3})@mydomain.fr(.*) Leave Stop Neighbor CUCM

    (c) changes of

    Change the destination to the URI format alias
    ([^@]*)
    Replace
    ------[email protected] / * /

    CUCM IP to the domain
    Regex
    (. *) @(AAA\.) BBB\. CCC\. D | AAA\. BBB\. CCC\. D)((:|;).*)?
    Replace
    ------[email protected] / * /\2

    Convert domain Unified CM provided until highway information
    Regex
    (4\d{3})@expc.mydomain.fr(:.*)?
    Replace
    ------[email protected] / * /

    (2) experience

    (a) areas

    Name Type Calls Bandwidth used Status of H323 SIP status Status of search rule
    DefaultZone Default zone 0 0 kbps On On  
    DNSZone DNS 0 0 kbps On On The search rules permit: 1
    Covered area (server) Crossing Server 0 0 kbps Assets (Connections noactive) The search rules permit: 1
    Covered area (UC) Unified Communications crossing 0 0 kbps Off Assets No rule search configured

    Details

    Name: Area covered (server)
    Type: Server covered
    Hop count: 15
    User name: qwerty
    H.232 Mode: on
    Port: 7003
    Transport: TLS
    TLS check mode: Off
    Accept records submitted by proxy: enable
    Media encryption mode: Auto
    Support of ice: Off
    The poison SIP mode: Off
    Authentication policy: do not check the credentials
    UDP retry interval: 2
    Number of UDP attempts: 5
    UDP keep alive interval: 20
    TCP retry interval: 2
    Number of attempts TCP: 5
    TCP keep alive interval: 20

    Name: Covered area (UC)
    Type: Course Unified Communications
    Hop count: 15
    User name: qwerty
    SIP port: 7001
    TLS check the name of the object: expc.mydomain.fr
    Accept records submitted by proxy: enable
    Support of ice: Off
    The poison SIP mode: Off
    Authentication policy: do not check the credentials
    UDP retry interval: 2
    Number of UDP attempts: 5
    UDP keep alive interval: 20
    TCP retry interval: 2
    Number of attempts TCP: 5
    TCP keep alive interval: 20

    (b) research rules

    Priority Name of the rule Protocol Source Authentication required Mode Type of rehearsal Pattern string Behavior model On match Goal
    50 LocalZoneMatch Any Any NO. Any alias       Continue LocalZone.GetDaylightChanges
    100 Search of covered area rule Any Any NO. Any alias       Continue Covered area (server)
    150 Search for DNS zone rule Any All areas NO. Alias matching Regex (?. *@%localdomains%.*$).*) Leave Continue DNSZone

    (c) changes of

    Change the destination to the URI format alias
    Prefix
    ([^@]*)
    Replace
    ------[email protected] / * /

    Hey Denis,

    It seems that you might have some problems.

    • VCS - C you have a search rule that targets CUCM, but it does not perhaps not for you for 2 reasons.
    1. It's the same priority as your rule of research area of course which may cause routing loops. Change the rule for targeting priority CUCM 100 to something between 50 and 100.
    2. It will only forward calls to CUCM which begin with a 3 and are followed by 3 numbers ending by mydomain.fr(.*). If you are URI calls that do not match this pattern, they will not be sent to CUCM. Make sure to set your match of regex to include your models DN so that your schemas URI incase they are figure not URI.

    Make these changes, and you may have more luck. Make sure also that your CUCM is configured to allow the composition of the URI. Ensure that the device that you are calling has a URI configured on the line.

    Once you make these changes to retest a call. If that fails, send the history research of the failure of the attempt. You can find it on the VCS under status > Search History.

    -Chad

  • Send variables from flash AS2 to php mySQL

    Hi I have a question to adobe. So I finally created a system to connect / register with php and mysql and flash as2. That works, and here's the link:lumosityentertainment.hostei.com/PhPLoginSystem.swf

    But I have a question. How to send variables from flash as2 to my mySQL database? And then how to load their MySQL to flash as2? Also when variables get edited or changed as if I had 6 gold and then now I have 7 but how do send flash that updated data in my database? I know you use php and other things but I have examples of easy php and codes as2? I'm a beginner in php, but I know a decent amount of AS2. I searched all over google and adobe for the answer forums, but none of them really helped. I am currently working on a flash game on my site and I'm doing so that players can save as their gold, armor, weapons etc and then load them by logging into their account.  Here is my game that I currently use cookies to save the data:

    lumosityentertainment.enjin.com/playfantasydreams

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    receiveLV.onData = function(src:String) {}

    trace (SRC);  or be it for debugging

    }

    sendLV.somedata = somedata;

    sendLV.someotherdata = someotherdata;

    sendLV.sendAndLoad ("yourphp.php", receiveLV, "POST");

    /////////////////////////////////

    ////

    PHP

    .

    .

    $somedata = $_POST ['somedata'];

    $someotherdata = $_POST ['someotherdata'];

    write to your sql

    {if (whatever)}

    echo "success";

    } else {}

    echo "failed."

    }

    /////////////////////////////////

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • Call a variable inside a movieClip.

    Hello. I have problems calling my variable score which I attributed within a movieClip. I want to do is when my score reaches my desired value (e.g. 10), I want the congratulations screen to be visible. The congratulations screen is placed in the main timeline. Is there a way I can access the variable I created inside a movieClip?

    I tried to use:

    If (score is 10)

    {

    MovieClip (root).screen_1.visible = true;

    }

    This code snippet is placed in the movieClip where the score of the variable is declared. But it doesn't seem to work.

    I also tried:

    If (.score MovieClip (root) == 1)

    {

    Screen_1.Visible = true;

    }

    This code snippet is placed in the main timeline.  It did not work also. I don't have any errors in this code, but it does not give me the result I wanted. Thank you.

    I guess the congratulations screen is on the same timeline as the code that you have demonstrated.

    in this case, you should use .score MovieClip (root) to the score of reference defined in the main timeline.  In addition, the code must run any score is updated so put this code in a function and call this function each time score is updated.

  • Call a variable to another variable (alphanumeric)

    Hi all
    I have the scenario where I call a variable to another variable in ODI.

    For example.

    Lets say I have two variables V_SET1 & V_SET2

    V_SET1:
    Variable type: alphanumeric, Historize,.
    Refreshing: SELECT #V_SET1 FROM DUAL to historize value.

    Now I use V_SET1 in V_SET2
    V_SET2:
    Variable type: alphanumeric, Historize,.
    Refreshing:
    Select EXTRACT_PGSQL_DETAIL where OE_DETAILS = SOURCE_NAME # V_SET1

    The two variables are inside the script I'm passing V_SET1 value at runtime as a parameter 'TEST '.

    V_SET1 is running successfully & TEST is stored is historical


    BUT V_SET2 V_SET1 value happens in "quotes & I'm mistake geeting IDENTIFIERS INVALID"TEST"

    Select EXTRACT_PGSQL_DETAIL where OE_DETAILS = SOURCE_NAME # V_SET1 ('TEST') - identifier inavlid error.

    How can I convert the value of the TEST of 'TEST' to 'TEST' in the second Variable V_SET

    Published by: neeraj_singh on June 24, 2011 03:15

    Hello

    Try this if not,.

    Select SOURCE_NAME from EXTRACT_PGSQL_DETAIL where OE_DETAILS = '#V_SET1. '

    Thank you
    Guru

  • Passing variables from flash to php script - does not!

    Hey everybody. I was wondering if someone could help me. I use as2 to pass a variable from flash to my php and nothing happened! Here's the action script code that I put on my button:

    (release)

    {

    Amount.Text = 5;

    Form1 = new LoadVars();

    Form1.amount = amount.text;

    form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

    }

    The amount of '5' is now in a dynamic text field with the variable name and instance of amount (which, in the future, will be hidden). This works very well when the button is clicked. What I'm trying to do without success, is to get this value of '5' to my test.php and did echo and it happens simply not . It comes to my php script:

    <? PHP

    $form_inp = $_POST ["amount"];

    If ($form_inp == "'")

    {

    Print "nothing entered < br >".

    }

    on the other

    {

    Print "you entered: $form_inp";

    }

    ? >

    I'm getting "Nothing entered" every time.

    I've tried different ways for the amount.text such as:

    (release)

    {

    Amount.Text = 5;

    Form1 = new LoadVars();

    Form1.amount = this. Amount.Text;

    form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

    }

    and

    (release)

    {

    Amount.Text = 5;

    Form1 = new LoadVars();

    Form1.amount = this ._parent. Amount.Text;

    form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

    }

    etc...

    I also tried to change the variable name in the function sendAndLoad amount to form1 as follows:

    (release)

    {

    Amount.Text = 5;

    Form1 = new LoadVars();

    Form1.amount = amount.text;

    form1.sendAndLoad ("http://mywebpage.com/test.php",form1, "POST");

    }

    and still nothing.

    In my php file, I even tried the GET instead of the POST and it always turns out nothing.

    <? PHP

    $form_inp = $_GET['monto"];

    If ($form_inp == ")

    {

    Print "nothing entered < br >".

    }

    on the other

    {

    Print "you entered: $form_inp";

    }

    ? >

    Additional info:  I put the .swf file and at the same level-.php file in the same folder on my server just to be safe, and the dynamic amount.text text field and button are at the same level in the .swf file.

    Anyone can shed some light on my situation... pretty please? I'm out!

    Thank you very much.

    Ok. So, do not let this thread unanswered, after a looooooong of trial and error, I went to as3 and began to do some testing. It turned out that the register_globals was off on my site and that is why I did not receive the variable passed with the $_POST in my php. So what I finally proposed is the following:

    In my fla/swf doc:

    to import flash.net.URLVariables;

    import flash.net.URLRequest;

    import flash.net.sendToURL;

    var urlVariables:URLVariables = new URLVariables;

    urlVariables.amount = "5";

    var urlRequest:URLRequest = new URLRequest ("http://mirador.mx/oaxaca/disco/receive_test.php");

    urlRequest.data = urlVariables;

    sendToURL (urlRequest);

    In my php file:

    $amount = $_GET ["amount"];

    echo "' AMOUNT IS:". " $amount;

    Now for all of you who have been following this thread, or which can be read in the future, I know that we we started with AS2 and finishing here with AS3 but I didn't know why it worked until I I'm so fed up I've changed in AS3 to see if I could understand. I, like many others I guess, felt a bit intimidated with AS3 and was unwilling to give it a try, but I highly recommend that you dive into it because once get you a grip on it is much more functional.

    So I m going to mark this thread as a response and hope it saves someone else all the time and the frustration that he made me... Good programming!


  • [CS4/JS/AS] doScript pass variable from JS to as.

    I have this doScript I want to pass a variable (theFold) to the AppleScript, he appealed:

    #target "inDesign - 6.0.

    var theFold = ["Spotlight"]

    var myScriptFolderPath = ("" HD:Users: user: Desktop Macintosh: unlock V3.app: "");

    app.doScript (file (myScriptFolderPath), ScriptLanguage.applescriptLanguage, theFold);

    AppleScript is:

    adding property: "Macintosh HD:Users: user: Desktop:

    on the run (fromJava)

    tell application "Finder".

    set name2 to (fromJava text)

    set theName to add & name2 as alias

    my openSez (theName)

    end tell

    end of race

    on openSez (theName)

    tell application "Finder".

    updated folderContents (items in folder theName)

    if (folderContents count) > 0 then

    -scroll through each item in the folder

    repeat with i from 1 to count the folderContents

    put carryThrough (section i of folderContents)

    -if this is another folder, then recurse

    if carryThrough is 'file' then

    set theName to (carryThrough as string)

    my openSez (theName)

    else

    is locked to carryThrough is true then

    locked carryThrough false game

    end if

    end if

    end repeat

    end if

    end tell

    end openSez

    Is it possible to pass a variable when calling a script from a path?

    I get the error "cannot make < script > in Unicode text.

    Thanks for any help or comments.

    Peter

    The variables are passed to a variable called arguments. You don't need an execution handler or anything like that, just:

    Name2 ((point 1 deles de arguments) text value)

    end of race

  • Get a variable from an open tool

    Hello

    I m developed a tool open in Java to get an ID of a HttpRequest.
    I want to keep this answer (a string) in a variable for use in another step.

    Is this possible?

    So, I tried to create a .jar I used in a procedure like this thanks to http://askankit.blogspot.com/2010/09/call-java-jar-methods-from-odi.html:
    Import os
    import sys

    jars =]
    'F:\NetBeansProjects\UrlEndPoint\dist\UrlEndPoint.jar '.
    ]

    for pot in pot:
    sys. Path.Append (jar)

    from com.mycompany.endpoint import *.

    FW = urlendpoint)
    FW. Login (URL, USER, PASSWORD)

    But the operator returns this error:
    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 13, inside?
    java.lang.NullPointerException

    at java.lang.Class.isAssignableFrom (Native Method)

    at org.python.core.PyJavaClass.init__class__ (PyJavaClass.java)

    Someone knows how to solve this kind of problem?

    Best regards
    Julien

    Published by: user12115064 on October 1, 2010 05:28

    In the procedure of ODI.
    As a first step, use
    Command on target - as the tank of Java Bean technology
    <>
    You must write your java code this symbol
    @>

    In the next step, provide the necessary technology

    call the variable as <@ variable="" @="">as shown in the first response.

    You can also find another thread that should give you a better idea.

Maybe you are looking for

  • VPS Config will not save the password

    I am running 10.11.4 on what we'll call the Machine B and I'm trying to config a VPN which is supposed to connect to a Mac OS X Server running a VPN L2TP. Another machine, we'll call the Machine A, connects to the VPN without problem. So, I know that

  • The Panel buttons before manipulation within a structure of event

    Is there an easy way to manage buttons on the front panel within a structure of the event? I am currently using a structure of the event to bring up a settings tab, but I can only use the buttons that are designated as events. Is it possible to use n

  • SmartScreen is declining as suspicious secure email

    Hi, I get legitimate messages in my Inbox which is marked by SmartScreen "this message looks suspicious to our SmartScreen filter. However, it IS the e-mail legitimate people, that I want to receive email, and there is no option for me to say that th

  • Freezing on the transfer of your media: Clip Zip +.

    Hi all Recently bought a Clip Zip + after hearing good reputation and my previous disappearance of mp3 player with high expectations.  Unfortunately, I have a very frustrating problem that a Frost comes to transfer your media stage (it happens about

  • Architectural Desktop E3.3 on vista 64

    I installed my E3.3 on my new vista laptop 64 but before it opens completely I get fatal error: exception not supported to e06d7363h in 760ff328h and it stops. Is there a download available to run this program on my vista 64