Post/receive data from ASP.

Hello

I'm trying the URLRequest post 4 scores (totalscore2, totalscore3, totalscore1, totalscore4) to an ASP page on a server where the ASP will run a formula to process and return the 2 grades (score1, score2).

The ASP script to process it that is sent from that SWF Flash looks like

var totalscore1 = parseFloat (Request ("totalscore1"));

The ASP script to create a return looks like:

Response.Write ("score1 =" + score1 + '& score2 =' + score2);

Response.End ();

% >

I'm new to this type of application/publication of data, especially how to set variables that can (?) be sent or return in the form of numbers, not of text strings.

variable totalscore are numbers like 30 or 75. How to set: var variables: URLVariables = new URLVariables();

(don't know what the above ASP script needs: should I send, string of numbers or text?)

Final return score variables are likely to be numbers such as 2.95 or 1.25. How to receive these numbers back to the ASP page and put them in 2 variables numbers for use in AS3 scripts.

Any help appreciated.

You can only and send strings to Flash... but in Flash, you can use:

int (score1);

or

parseInt (score1);


to convert the string to an integer or

Number (score1);

to convert to Double, float

Tags: Adobe Animate

Similar Questions

  • HP photosmart prem 310 cannot receive data from the pc

    Ive installed the new printer hp photosmart prem 310 series. I get a message saying that the printer can receive data from the pc. I have went to hp site and ran updates of drivers and software

    Have you tried that?
    HP Print doctor for help with many printing problems

    http://h10025.www1.HP.com/ewfrf/wc/document?cc=us&LC=en&docName=c02073861&JumpID=ex_r4155/HHO/IPG/ccdoc/trailhead_doc&lang=en

    I hope this helps.

  • How to transform the received data from the file adapter

    Hi '.

    I read the data in the XML file using the file adapter, now I want to write the same content I read from this file to a different/new XML file, the problem is that I'm unable to perform a transformation here, when I use a transformation with source element as the output of the reading of file and the target as input in the new file it writes an empty file ,
    I checked the audit trail that showsme that the transformation is empty.
    Please tell me how I transform the item I received a file to make them as input to the next file

    Thank you
    Yatan

    You can post your Transformation_3.xsl, I would also like to see the result of the receipt of the readfile.

    I'm not convinced that this XML is correct. I don't expect to see the element xsd: Schema.

    see you soon
    James

  • read and receive data from the server

    Hi all

    I want to develop an application that extract data related to the content of the server, how to do? I read somewhere stating this task requires sdk server push? is it possible do not use push sdk server and the server reading so that I don't have install anyting from the server.

    Your Web service code decides how much data you send or receive from the customer.

    For example, you can have a Web service method, which returns records to a particular date, then you must create a web service method that accepts a date to a string as a parameter and a request for service records of server request, write resultset in encoding (like xml, json, etc) and return this string as a response to the client client will read the data as a byte array, then converts the byte array to the string and according to the encoding defined by service will analyze data of interest.

  • Envy H8 1400Z: backup the drive n, t receive data from the refreshment

    I had a 120 Hz to get rid or dracovenii a few weeks ago. The other day, I noticed that my backup hard drive has not received all the data since then.

    Microsoft Windows 8.1

    The file history has been turned off.

    Thanks for the help

  • receiving data from php

    Hey, so moving along well, just a bit stuck.  So, my first flash Web page sends the data to a php script.  I then

    var result_data:String = String(contactLoader.data);
         if (result_data == "ok")
         {
              navigateToURL(strURL, "_self");
         }
    

    So, if the data is sent without any problems, it will load up my new url.  Problem is this new url needs these data to display.  So if my php file contains variable data, how can my new url retrieve them in real time? (which means that the data are intended directly from swf to php to the new swf format)  I tried LoadVars, but do not know if it will work in real time, maybe it will be.

    Any advise appreciated.

    see you soon

    using the associative array $_SESSION is chosen on the deprecated $HTTP_SESSION_VARS.

    retrieve you the data using the same associative array.

    the only delay using a text file would be internet latency to download the text file.

  • Real-time display and receive data from txt files

    Hello

    I am creating a Flash component and I'm doing an editor for him.

    The component itself receives all its parameters to a .txt file.  The editor is a form of reading/record, that initially loads the settings in the form fields, then replace the .txt file when the user presses submit.  Then, you update the component on any Internet site, you have to see the changes.  I plan also to import the swf of the component in the editor.

    Here is the php code I found to help me will do:

    <? PHP
    Enter the data in the table of $_POST
    $title = $_POST ["title"];
    $comments = $_POST ['comment'];
    $image = $_POST ['image'];
    Make a chain in a Flash format
    $toSave = "title =". "." $title. "& comments = '. '. $comments. "& image =". " $image;
    Open a file in write mode
    $fp = fopen ("anastasio.txt", "w");
    If (fwrite ($fp, $toSave)) echo "write = Ok;
    else echo "write error";
    fclose ($FP);
    ? >

    If I have correctly configured as3 to send and receive on the fields of form a dozen as an experiment.

    What I want to do now is to do more in real time, so that the changes are reflected in the component that the user types parameters in, rather than submit them htting and then having to refresh the component swf to see the changes.

    What is a good way to go about this?

    Thanks for your help on this one.

    Shaun

    AS3 textfields have a change event that is sent when a textfield text changes.  You can use it to update your text file.  refresh a component in another swf file will require you to use the localconnection class to communicate between the two rulers.

  • receive data from dasylab rs 232

    Hello
    Y does it can someone help me
    I have the Omega CN606 and software Dasylab 10
    How so the two can communicate
    Regardless of the data format should I fill in the input RS232 module
    I intend to create a temperature program and module should I use
    I thank you for your help

    Have you contacted Omega on this issue? It's their device, and get some advice.

    I've never worked with it before.

    We need to know:

    What are the exact data request command

    What is the exact format of the answer

  • Could not receive data from GPIB system controller (PCI card of NI - 488-2)

    Hello

    We create a daughter card that will allow our product shipped to communicate via GPIB. This girl GPIB card must be able to receive the SCPI message send by system GPIB controller and reply to the message. In my current configuration, system controller is a card PCI of NOR-488. 2 installed on a PC running Windows XP.

    On the side of card GPIB girl, we have NAT7210 with 75160 and 75161 transceiver chips. NAT7210 is connected to the interface of static memory controller (SMC) an Atmel ARM9 embedded Linux OS running. We use the Linux GPIB library on sourceforge - http://linux-gpib.sourceforge.net/ .

    For now, chip NAT7210 initialization stage seems to be successful. Using Measurement & Automation Explorer software that comes with the NI GPIB PCI card, it is able to detect the daughter GPIB card; the cushion and the sad values are correct. However, chip NAT7210 has failed to receive the * IDN system controller message.

    Here's what I did to initialize the NAT7210:

    (1) set 0 x 99 in SPMR register. To make sure that we are 7210.

    (2) in AUXMR the value 0 x 02 (chip reset at the controls). To affirm the message local pon.

    (3) skip the step that defines the ICR and registered ICR2 because we use the default clock 8 Mhz.

    (4) the value 0 x 31 (addressing Dual mode) in the register of the ADMR.

    (4) together in ADR 0x01 to register.

    (5) contained SPMR 0x40. Initial response of series. I don't know what are reasonable values to settle here.

    (6) together to register 0x07 in hidden PPR. Do not participate in the parallel polls.

    (7) set TASKS and NTNL bits in the AUXRG register.

    (8) the value 0 x 51 (hldi to the order) in the AUXMR register.

    (9) to activate the interruptions; IMR0 = 0xC5, IMR1 = 0xBF and IMR2 = 0x4F (no plans for DMA transfers).

    (10) the value 0 (command pon) in the AUXMR register. Final step.

    The NAT7210 Linux configuration file content:

    minor = 0

    board_type = "gpib".

    name = "gpib0.

    PAD = 1

    sad = 96

    Timeout = T3s

    EOS = 0x0a

    together-reos = yes

    all-bin = no

    together-xeos = no

    together-eot = yes

    base = 0 x 70000000

    IRQ = 45

    DMA = 0

    master = no

    Any ideas on what could be the reasons NAT7210 has failed to receive the * IDN system controller message?

    Steve, thanks for your comments.

    It turns out that the deactivation of functions that print messages in the debug library has solved the problem of reception.

  • BlackBerry Smartphones can receive data from bluetooth to other phones?

    Just got my blackberry "BOLD" yesterday but I am incapable of adult data to other phones via bluetooth. I have synced with devices and I am able to transfer my BlackBerry to them.

    Is there a setting on the phone that automatically kicks right now? I have the phones as being approved and encryption turned off the coast of the ease of fo but without success.

    any help would be greatly appreciated

    concerning

    S. Kelly

    I'm just rephraseing Amberlodge1 words ' Just pair your device and then send the content via Bluetooth. " Now go to your media application-> go to the appropriate content folder-> click on the Menu button and select Rbeen Using Bluetooth. »

  • Dreamweaver CC 2105 "internal data error - failed to receive data from the network.

    I haven't seen this error before and have used Dreamweaver for many years. But, I am getting very regularly (it's more than intermittent) since the last update of Dreameaver. I'm just checking if it's a bug in Dreamweaver, or a bug of Yahoo Web Hosting.

    What happens is that I log on my SFTP site (sometimes I can not yet connect), then try to download a file and get the message "an FTP error occurred - cannot establish a connection to the host." Internal data error. Unable to connect to the server. ».

    However, and this is the really, really bad bits, the file that WAS on the server (i.e. who was to be replaced) seems to be DELETED, i.e. * before * the update is applied (which is not because of the error). I don't know if Dreamweaver somehow did this or not, but this means that if you were, say, download a revision to top-level index.html file in your site, this file is no longer there, and visitors to your site then sees the * entire * structure of the files in your site - potentially catastrophic.

    I tried to empty the cache to Dreamweaver (http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache/), but that makes no difference.

    Did someone else presents itself has found a solution for it (or identified the problem)?

    Thanks in advance!

    There was a few other messages on Yahoo and connection problems recently.

    Have you tried downloading using another FTP, Filezilla client program, yet?

    If the problem that is happening, it may just be a problem with Yahoo. If it isn't, at least your site will be updated while troubleshooting continues with DW.

  • Purchase of receive data from FDF update Requirment receipt Transactions

    Hello
    Analyst created a FDF in purchases (transaction receipt) to save Volumn.
    I have a requirment to update the values in the field, how can I update this field using the API or custom procedure.

    Is there an API I can use?

    Name of the FORM: RCVRCVRC

    Table name: rcv_transactions
    Need to update a column: ATTRIBUTE9

    Thank you
    Edmonton

    There is no update RCV_TRANSACTIONS functionality, each transaction creates a new line (never the oracle does update a record). IF you are sure 100% attribute9 is configured to receive Transactions, you can write a custom program to update RCV_TRANSACTIONS.attribute9.

    Thank you
    ASIM

  • Exception during consumption of huge data from a web service.

    Hello

    I m developing an application to receive data from a Web Service and retain the data received on the device.

    App is developed for OS 4.3.0

    The Web Service call is made using Ksoap. The Code receives the data from the web service, analyzes the data and stores it in an object. This object is then persisted on the device. The data are essentially the coordinates. It takes the number of contacts required as input and passes it to the Web Service. The Web Service then returns the requested number of records

    The code works if I ask data of up to ~ 600 cases. If I specify more than 600 cases, it throws the following exception

    Chain rg.xmlpull.v1.XmlPullParserException:unexpected type (position: TEXT entity request in T...@1:24 in java.io.InputStreamReader@1f87d1b4)

    When I debugged using Eclipse, this exception is thrown on this statement ht.call (soapAction, envelope);

    Would it be because of a time-out? OT is because the Analyzer is not able to analyze huge data?

    Given that this exception occurs on the declaration of ht.call, I guess the problem is with the web service call and not with the code for persistent storage.

    I have included the code here... Is could someone please show me what the problem is?

    C ode to call Web Services

    public Vector getWebData(String count)
        {
    
       Vector personsVectorto = new Vector();
        try
        {
        StringBuffer receivedContent = new StringBuffer();
        String serviceUrl = "........";
        String serviceNamespace = ".....";
        String soapAction = ".........";
    
       SoapObject rpc = new SoapObject(serviceNamespace, "GetContactsList");
            //rpc.addProperty("listSize", "5");
            rpc.addProperty("listSize", count);
         SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    
            envelope.bodyOut = rpc;
    
            envelope.dotNet = true;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
    
            ht.call(soapAction, envelope); // This is where thexmlpullparser exception occurs
    
     Object obj = envelope.getResponse();
            SoapObject soapResult = (SoapObject)obj;
    
                for(int i=0; i < soapResult.getPropertyCount(); i++)
    
                {
                  PersonDTO personto = new PersonDTO();
               SoapObject choice = (SoapObject)soapResult.getProperty(i);
                if( choice!=null)
                {
                    for(int j = 0; j < choice.getPropertyCount(); j++)
                    {
                      receivedContent.append(" Reading Property Number" + String.valueOf(j) + " Value = " + choice.getProperty(j).toString());
    
         if (j==0) personto.setElement(1,choice.getProperty(j).toString());
        if (j==1) personto.setElement(2,choice.getProperty(j).toString());
        if (j==2) personto.setElement(3,choice.getProperty(j).toString());
        if (j==3) personto.setElement(4,choice.getProperty(j).toString());
        if (j==4) personto.setElement(5,choice.getProperty(j).toString());
         if (j==5) personto.setElement(6,choice.getProperty(j).toString());
         if (j==6) personto.setElement(7,choice.getProperty(j).toString());
          if (j==7) personto.setElement(8,choice.getProperty(j).toString());
         if (j==8) personto.setElement(9,choice.getProperty(j).toString());
       if (j==9) personto.setElement(10,choice.getProperty(j).toString());
                    }
                }                 
    
                personsVectorto.addElement(personto);
                //storepersistentobject(personsVectorto);
            }
    
            }catch(org.xmlpull.v1.XmlPullParserException ex2)
            {
                String bah1 = ex2.toString();
                Dialog.alert("String: " + bah1);
                String bah2 = ex2.getMessage();
                Dialog.alert("Message: " + bah2); 
    
            }       
    
            catch(Exception ex){
                String bah = ex.toString();
                Dialog.alert("Response: " + bah);
    
                }
    
                return personsVectorto;
        }
    

    Thank you

    Hi Philippe,.

    First Question: Print server response

    Yes - I think for you too in fact just print the answer you'll have to do a regular HTTP call to the server and print it like this:

    StringBuffer sb = new StringBuffer();

    int thumb;

    HttpConnection httpConn = (HttpConnection) Connector.open (url);

    httpConn.setRequestMethod (HttpConnection.GET); or by POST depending on your needs

    in = httpConn.openInputStream ();

    While ((thumb = in.read ())! = - 1).

    {

    SB. Append ((Char) inCh);

    }

    System.out.println ("server response:" + sb.toString ());

    Try and see if you get a request too large entity. Note: you should probably put your SOAP request in GET or POST http request.

    Second Question: Is zipping required?

    This is how I chose to do for my particular needs that transfer me a large amount of data and the compression algorithm seems to keep all my data well below 40 k. However, it is not the only way, you could actually make several requests and get data piece by piece, but I don't know if it works well with SOAP responses. Depending on the type of Network Setup Blackberry you have, you can also set this limit to be higher (I think a maximum of 1 024 Ko for BES).

    Third Question: Timeout Logging

    For wait times, usually the exception you get should indicate that there was a timeout, but if you are suspicious that it's a timeout check your web service and see.

    Hope that helps!

    R

  • transmission of data from one container to another

    Hello

    Let's say I have two containers (Container1 = application, Container2).  Container1 receives data from user, do some search database and displays Container2 with database search results.

    -Container1 (call and display)-> Container2

    Below shows how I use a bindable variable in container1 for transmitting data of container1 in Container2.  Also shows how to display Container2 of container1.

    <! - Container1 - >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML ">


    ....
    [Bindable] public var foo:String = 'bar ';
    ....
    private void loginHandler(event:LoginEvent):void
    {
    mycontainer2 = new Container2();
    mycontainer2. Name = "mycontainer2";
    this.addChild (mycontainer2);
    }
    < / mx:Application
    >

    I am data access in Container2 as follows:

    <! - Container2 - >

    {mx.core.Application.application.foo}

    T1) is there a better way to transfer data from one container to another and to access the data?

    Q2) is the only way to call and display of the container1 Container2?

    Q3) how can I return to container1 Container2, i.e. Container2 call and display container1

    Container2-(back to)-> container1

    Best practices call for the use of custom events to share data between components. Here is my message from Flex 3 cookbook on the theme:

    http://cookbooks.Adobe.com/index.cfm?event=ShowDetails&PostID=15466

    To easily switch between containers 1 & 2 use a ViewStack, the gold standard for this interaction and manipulate the selectedIndex and selectedChild property:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=navigators_3.html

    If this post has answered your question or helped, please mark it as such.

  • Aggregation of data from multiple sources with BSE

    Hello

    I want to aggregate data from multiple data sources with a BSE service and after this call a bpel with a process of construction of these data.
    1 read data from the data source (dbadapter-select-call)
    2. read data from the data source B (dbadapter-select-call)
    3 assemble the data in xsl-equiped
    4. call bpel

    Is this possible? How can I get data from the first call and the second call to conversion data? If I receive data from the second call, the first call data seem to be lost.

    Any ideas?
    Gregor

    Gregor,

    It seems that this aggregation of data is not possible in the BSE. This can be done in BPEL too using only assigned but not using transformations. I tried to use transformations by giving the third argument to the function ora: processXSLT. But couldnot get the desired result.

    For more information on the passage of a second variable (of another schema) as a parameter to xslt pls refer to the post office

    http://blogs.Oracle.com/rammenon/2007/05/

    and the bug fix 'passage BPEL Variable content in XSLT as parameters'.

    Hope this helps you.

    Thank you, Vincent.

Maybe you are looking for