AS3 send/import variables to/from php file

Hi
im new I would like to send some variables from ac3 to a
php-file. the
php-file have to copperate with this variable (send
querystring to
mysql-server).
ac3 have to read then new variables and traced it on the
screen.
i found some examples on the net but i have not undersood
any.
can you please explane that to me????
Sebastian

Hi
im new I would like to send some variables from ac3 to a
php-file. the
php-file have to copperate with this variable (send
querystring to
mysql-server).
ac3 have to read then new variables and traced it on the
screen.
i found some examples on the net but i have not undersood
any.
can you please explane that to me????
Sebastian

Similar Messages

  • Receiving variables back from php

    basicaly i have narrowed it down to this code
    stop();
    ////// Assign a variable name for our URLVariables object
    var variables:URLVariables = new URLVariables();
    var varSend:URLRequest=new URLRequest("create_member.php");
    varSend.method=URLRequestMethod.POST;
    varSend.data=variables;
    //////// Build the varLoader variable
    var varLoader:URLLoader=new URLLoader  ;
    varLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
    trace(varSend.data.status);
    trace(varLoader.data.status);
    As silly as it sounds, i need the trace to see the error.
    I am using cs4 for this and have not found anything so far to explain why it is not working.
    You can test it out without needing anything on stage.
    This is the error i get and do not know why.
    undefined               is the varSend trace
    TypeError: Error #1010: A term is undefined and has no properties.
    at Untitled_fla::MainTimeline/frame1()              is the varLoader trace
    I need this fixed, but cant find why it is doing it. Any ideas would be greatly accepted.

    There is a full script as well, but I still only get the errors stated. Basicaly I am unable to get any variables back from PHP. They show up an a standard browser window, but that is no good to me. My site is 100% flash and i need to receive data so that i can log people in, retreive their names and info, send custome messages to people on the site or even if only visitors. Without flash seeing the data correctly, I cant do squat.
    if (event.target.data.returnBody=="") {
    output_txt.text="No data coming through";
    } else if(event.target.data.returnBody!=="") {
    output_txt.condenseWhite = true;
             output_txt.htmlText = ""+ event.target.data.returnBody;
      gotoAndStop("_end");
    trace(varLoader.data.status)
    If i only use    --     event.target.data     I do get the info in, but with all the mish-mash that comes with it
    e.g.
    %0A%20%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%3Ch2%3EOne%20Last%20Step%20%2D%20Activate%20through%2 0Email%3C%2Fh2%3E%3Ch4%3EOK%20peter%2C%20one%20last%20step%20to%20verify%20your%20email%20 identity%3A%3C%2Fh4%3E%3Cbr%20%2F%3E%0D%0A%20%20%20In%20a%20moment%20you%20will%20be%20sen t%20an%20Activation%20link%20to%20your%20email%20address%2E%3Cbr%20%2F%3E%3Cbr%20%2F%3E%0D %0A%20%20%20%3Cbr%20%2F%3E%0D%0A%20%20%20%3Cstrong%3E%3Cfont%20color=%22%23990000%22%

  • How to import a logo from flat file to SAP in SMARTFORM.

    how to import a logo from flat file to SAP in SMARTFORM. i need to know whether TIFF format is used and also the full steps.
    Thanks,

    Hi,
    You can not directly use a logo from a file into a Smart form. First you will have to upload it to SAP. This has to be done only once. Once it is imported into SAP then you can use it in smart form. To import a logo to SAP, goto SE78. Open the tree under GRAPHICS. Select the file type and click on the Import (first button on the toolbar, just before delete button). Select the logo file and give it some appropriate name along with description. Select appropriate type of the image and click Continue. Your logo will be uploaded into SAP from a file. Now in your smartform, Create a Graphic Node, give the name of the logo along with other properties. In this way you can import a logo from a flat file into SAP and consequently in a smart form.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Need a script to import the data from flat file

    Hi Friends,
    Any one have any scripts to import the data from flat files into oracle database(Linux OS). I have to automate the script for every 30min to check any flat files in Incoming directory process them with out user interaction.
    Thanks.
    Srini

    Here is my init.ora file
    # $Header: init.ora 06-aug-98.10:24:40 atsukerm Exp $
    # Copyright (c) 1991, 1997, 1998 by Oracle Corporation
    # NAME
    # init.ora
    # FUNCTION
    # NOTES
    # MODIFIED
    # atsukerm 08/06/98 - fix for 8.1.
    # hpiao 06/05/97 - fix for 803
    # glavash 05/12/97 - add oracle_trace_enable comment
    # hpiao 04/22/97 - remove ifile=, events=, etc.
    # alingelb 09/19/94 - remove vms-specific stuff
    # dpawson 07/07/93 - add more comments regarded archive start
    # maporter 10/29/92 - Add vms_sga_use_gblpagfile=TRUE
    # jloaiza 03/07/92 - change ALPHA to BETA
    # danderso 02/26/92 - change db_block_cache_protect to dbblock_cache_p
    # ghallmar 02/03/92 - db_directory -> db_domain
    # maporter 01/12/92 - merge changes from branch 1.8.308.1
    # maporter 12/21/91 - bug 76493: Add control_files parameter
    # wbridge 12/03/91 - use of %c in archive format is discouraged
    # ghallmar 12/02/91 - add global_names=true, db_directory=us.acme.com
    # thayes 11/27/91 - Change default for cache_clone
    # jloaiza 08/13/91 - merge changes from branch 1.7.100.1
    # jloaiza 07/31/91 - add debug stuff
    # rlim 04/29/91 - removal of char_is_varchar2
    # Bridge 03/12/91 - log_allocation no longer exists
    # Wijaya 02/05/91 - remove obsolete parameters
    # Example INIT.ORA file
    # This file is provided by Oracle Corporation to help you customize
    # your RDBMS installation for your site. Important system parameters
    # are discussed, and example settings given.
    # Some parameter settings are generic to any size installation.
    # For parameters that require different values in different size
    # installations, three scenarios have been provided: SMALL, MEDIUM
    # and LARGE. Any parameter that needs to be tuned according to
    # installation size will have three settings, each one commented
    # according to installation size.
    # Use the following table to approximate the SGA size needed for the
    # three scenarious provided in this file:
    # -------Installation/Database Size------
    # SMALL MEDIUM LARGE
    # Block 2K 4500K 6800K 17000K
    # Size 4K 5500K 8800K 21000K
    # To set up a database that multiple instances will be using, place
    # all instance-specific parameters in one file, and then have all
    # of these files point to a master file using the IFILE command.
    # This way, when you change a public
    # parameter, it will automatically change on all instances. This is
    # necessary, since all instances must run with the same value for many
    # parameters. For example, if you choose to use private rollback segments,
    # these must be specified in different files, but since all gc_*
    # parameters must be the same on all instances, they should be in one file.
    # INSTRUCTIONS: Edit this file and the other INIT files it calls for
    # your site, either by using the values provided here or by providing
    # your own. Then place an IFILE= line into each instance-specific
    # INIT file that points at this file.
    # NOTE: Parameter values suggested in this file are based on conservative
    # estimates for computer memory availability. You should adjust values upward
    # for modern machines.
    # You may also consider using Database Configuration Assistant tool (DBCA)
    # to create INIT file and to size your initial set of tablespaces based
    # on the user input.
    # replace DEFAULT with your database name
    db_name=DEFAULT
    db_files = 80 # SMALL
    # db_files = 400 # MEDIUM
    # db_files = 1500 # LARGE
    db_file_multiblock_read_count = 8 # SMALL
    # db_file_multiblock_read_count = 16 # MEDIUM
    # db_file_multiblock_read_count = 32 # LARGE
    db_block_buffers = 100 # SMALL
    # db_block_buffers = 550 # MEDIUM
    # db_block_buffers = 3200 # LARGE
    shared_pool_size = 3500000 # SMALL
    # shared_pool_size = 5000000 # MEDIUM
    # shared_pool_size = 9000000 # LARGE
    log_checkpoint_interval = 10000
    processes = 50 # SMALL
    # processes = 100 # MEDIUM
    # processes = 200 # LARGE
    parallel_max_servers = 5 # SMALL
    # parallel_max_servers = 4 x (number of CPUs) # MEDIUM
    # parallel_max_servers = 4 x (number of CPUs) # LARGE
    log_buffer = 32768 # SMALL
    # log_buffer = 32768 # MEDIUM
    # log_buffer = 163840 # LARGE
    # audit_trail = true # if you want auditing
    # timed_statistics = true # if you want timed statistics
    max_dump_file_size = 10240 # limit trace file size to 5 Meg each
    # Uncommenting the line below will cause automatic archiving if archiving has
    # been enabled using ALTER DATABASE ARCHIVELOG.
    # log_archive_start = true
    # log_archive_dest = disk$rdbms:[oracle.archive]
    # log_archive_format = "T%TS%S.ARC"
    # If using private rollback segments, place lines of the following
    # form in each of your instance-specific init.ora files:
    # rollback_segments = (name1, name2)
    # If using public rollback segments, define how many
    # rollback segments each instance will pick up, using the formula
    # # of rollback segments = transactions / transactions_per_rollback_segment
    # In this example each instance will grab 40/5 = 8:
    # transactions = 40
    # transactions_per_rollback_segment = 5
    # Global Naming -- enforce that a dblink has same name as the db it connects to
    global_names = TRUE
    # Edit and uncomment the following line to provide the suffix that will be
    # appended to the db_name parameter (separated with a dot) and stored as the
    # global database name when a database is created. If your site uses
    # Internet Domain names for e-mail, then the part of your e-mail address after
    # the '@' is a good candidate for this parameter value.
    # db_domain = us.acme.com      # global database name is db_name.db_domain
    # FOR DEVELOPMENT ONLY, ALWAYS TRY TO USE SYSTEM BACKING STORE
    # vms_sga_use_gblpagfil = TRUE
    # FOR BETA RELEASE ONLY. Enable debugging modes. Note that these can
    # adversely affect performance. On some non-VMS ports the db_block_cache_*
    # debugging modes have a severe effect on performance.
    #_db_block_cache_protect = true # memory protect buffers
    #event = "10210 trace name context forever, level 2" # data block checking
    #event = "10211 trace name context forever, level 2" # index block checking
    #event = "10235 trace name context forever, level 1" # memory heap checking
    #event = "10049 trace name context forever, level 2" # memory protect cursors
    # define parallel server (multi-instance) parameters
    #ifile = ora_system:initps.ora
    # define two control files by default
    control_files = (ora_control1, ora_control2)
    # Uncomment the following line if you wish to enable the Oracle Trace product
    # to trace server activity. This enables scheduling of server collections
    # from the Oracle Enterprise Manager Console.
    # Also, if the oracle_trace_collection_name parameter is non-null,
    # every session will write to the named collection, as well as enabling you
    # to schedule future collections from the console.
    # oracle_trace_enable = TRUE
    # Uncomment the following line, if you want to use some of the new 8.1
    # features. Please remember that using them may require some downgrade
    # actions if you later decide to move back to 8.0.
    #compatible = 8.1.0
    Thanks.
    Srini

  • Importing personal certificate from pfx file

    Using iPhone configuration utility 3.5.0, Is it poosible to import a perosnal certificate using a .pfx file.
    When I try to miport it only lists certificates in the personal certificate store on windows machine? It doesn't allow me to import a certificate from a file.

    I am pretty sure that you can mail this certificate to an email account you can access on your iPad. Then when you open the certificate file it will be imported

  • Sending variable value from php to flash to load an xml file

    I would like to load an XML file from the location locally or on the server being unaware of the name of the file. I am using PHP for sending the filename to Flash.
    The below is the PHP code:
    <?php
    filesInDir('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');
    function filesInDir($tdir)
            $dirs = scandir($tdir);
            foreach($dirs as $file)
                    if (($file == '.')||($file == '..'))
                    elseif (is_dir($tdir.'/'.$file))
                            filesInDir($tdir.'/'.$file);
                    else
                            echo "fileName=$file";
    ?>
    And below is the loading Actionscript code:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    xmlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    xmlLoader.load(new URLRequest(phpFile));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              trace(evt.target.data.fileName);
              //cons_xml = new XML(evt.target.data.fileName);
              //gotoAndPlay(2);
    When I trace the evt.target.data it displays "fileName=mainOpenEndedXML%2Exml" and when I trace evt.target.data.fileName the fileName is properly displayed as "mainOpenEndedXML.xml".
    But in the next two lines where the loading occurs it does not load the file i.e the swf file from xml doesn't play.
    I have been searching the Internet for answers but not able to find any solutions.
    The loading works properly if i directly insert the xml file in the code and the swf's in the XML file play propertly. The below is the code for the same:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("mainOpenEndedXML.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);
    Any help on this would be greatly appreciated

    Yes. you already said that, but I guess you don't understand what I said.  You are loading the PHP fle to get the filename, but nowhere are you taking that filename and loading the file that was named. 
    You need to do two loading operations.  The first one to get the filename, and the second to load the file with that name.  Maybe if you name the PHP file loader phpLoader instead of xmlLoader it will start to make more sense to you.  Something like the following...
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var phpLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    phpLoader.load(new URLRequest(phpFile));
    phpLoader.addEventListener(Event.COMPLETE, processPHP);
    function processPHP(evt:Event):void
             var xmlLoader:URLLoader = new URLLoader();
             xmlLoader.load(new URLRequest(String(evt.target.data.fileName)));
             xmlLoader.addEventListener(Event.COMPLETE, processXML);
    var cons_xml:XML;
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);

  • Special characters in String variable sent from php.

    Hello. Assuming that I send some String variable from php into flash:
    AS3:
    var MyImportedString:String;
    var variables_page_text:URLVariables = new URLVariables();
    var varSend_page_text:URLRequest = new URLRequest("MyPHP.php");
    varSend_page_text.method = URLRequestMethod.POST;
    varSend_page_text.data = variables_page_text;
    var varLoader_page_text:URLLoader = new URLLoader;
    varLoader_page_text.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader_page_text.addEventListener(Event.COMPLETE, var_comp_page_text);
    varLoader_page_text.load(varSend_page_text);
    function var_comp_page_text(event:Event):void {
        MyImportedString =  event.target.data.MyVariable;
    php:
    <?php
    header('Content-Type: text/html; charset=utf-8');
    $MyString = "some tekst &";
    print "MyVariable=" . $MyString;
    ?>
       I've noticed that the special character '&' residing inside String, throws an error:  #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
      My first thought was, it has something to do with html entities, but other entities (like <> or ") don't throw any error. Besides, the use of php functions like htmlentities(); or html_entity_decode(); doesn't make any difference in this case:
    print "MyVariable=" . htmlentities($MyString);
    or
    print "MyVariable=" . html_entity_decode($MyString);
      I've also noticed that characters like '%', '^', '+' don't show up at all;
      What does it mean? Any ideas?
      Reagards.

    Thank You 'moccamaximum'.
    Ok. So here is the solution (php function posted by 'moccamaximum' does the trick):
    AS3:
    var MyImportedString:String;
    var variables_page_text:URLVariables = new URLVariables();
    var varSend_page_text:URLRequest = new URLRequest("MyPHP.php");
    varSend_page_text.method = URLRequestMethod.POST;
    varSend_page_text.data = variables_page_text;
    var varLoader_page_text:URLLoader = new URLLoader;
    varLoader_page_text.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader_page_text.addEventListener(Event.COMPLETE, var_comp_page_text);
    varLoader_page_text.load(varSend_page_text);
    function var_comp_page_text(event:Event):void {
        MyImportedString =  event.target.data.MyVariable;
         trace(MyImportedString);        // Output:  some text &%^+
    php:
    <?php
    header('Content-Type: text/html; charset=utf-8');
    $MyString = "some text &%^+";
    print "MyVariable=" . flash_encode($MyString);
    function flash_encode($string){
         $string = rawurlencode(utf8_encode($string));
         $string = str_replace("%C2%96", "-", $string);
         $string = str_replace("%C2%91", "%27", $string);
         $string = str_replace("%C2%92", "%27", $string);
         $string = str_replace("%C2%82", "%27", $string);
         $string = str_replace("%C2%93", "%22", $string);
         $string = str_replace("%C2%94", "%22", $string);
         $string = str_replace("%C2%84", "%22", $string);
         $string = str_replace("%C2%8B", "%C2%AB", $string);
         $string = str_replace("%C2%9B", "%C2%BB", $string);
         return $string;
    ?>

  • Printing user validation errors from .php file back onto a form

    Hey all. I have written a simple contact form with the extention .php. It includes the php validation and the form inputs on one page. If the input does not validate, a warning in red is printed at the top of the form after the user pushes submit. When I cut and paste the php validation code into a seperate file, the validation errors print on a blank screen. What I want is to have the same results with a seperate php file as I do when I include the php code on the form. (print errors from the seperate php validation file back onto the form).  Thanks for taking a look
    <h1><span class="bodyheader1">Contact </span><span class="bodyheader2">Us</span></h1>
        <p class="subheading">Tell us what's on your mind:</p>
        <?php
        if(isset($_POST['send_comment']))
            //Validating the comment field
            //checking if a first_name field has been entered
            if($_POST['first_name'] != "")
                //Saitizing first_name with a filter
                $_POST['first_name'] = filter_var($_POST['first_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['first_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid first name.<br/>';
            else
                //Error message
                $errors .='Please enter your first name.<br/>';
            //Validating the last_name field
            //checking if last_name has been entered
            if($_POST['last_name'] != "")
                //Saitizing last_name with a filter
                $_POST['last_name'] = filter_var($_POST['last_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['last_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid last name.<br/>';
            else
                //Error message
                $errors .='Please enter your last name.<br/>';
            if($_POST['email'] != "")
                $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
                if (!filter_var($email, FILTER_VALIDATE_EMAIL))
                    $errors .= "$email is not a valid email address.<br/>";
            else
                $errors .= 'Please enter your email address.<br/>';
            //Validating the comment field
            //checking if a comment has been entered
            if($_POST['comment'] != "")
                //Saitizing comment with a filter
                $_POST['comment'] = filter_var($_POST['comment'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['comment'] == "")
                    //If no input, return error message
                    $errors .='Please enter a comment.<br/>';
            else
                //Error message
                $errors .='Please enter a comment.<br/>';
            if(!$errors)
                $mail_to = '[email protected]';
                $subject = 'Contact form ' . $_POST['first_name'];
                $message = 'First Name: ' . $_POST['first_name'] . "\n";
                $message .= 'Last Name: ' . $_POST['last_name'] . "\n";
                $message .= 'Email: ' . $_POST['email'] . "\n";
                $message .= 'Comment: ' . $_POST['comment'] . "\n\n";
                mail($mail_to, $subject, $message);
                echo "<script>document.location.href='thankyou.html'</script>";
            else
                echo '<div style="color: red">' . $errors . '<br/></div>';
    ?>
    *All fields are required<br />
    <br />
        <form name="contact" method="post" action="contact.php">
            <p>First Name: <br />
              <input name="first_name" type="text" value="<?php echo $_POST['first_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              Last Name: <br />
              <input name="last_name" type="text" value="<?php echo $_POST['last_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              E-mail: <br />
              <input name="email" type="text" value="<?php echo $_POST['email']; ?>" size="40" maxlength="200" /><br />
              <br />
              Comment: <br />
              <textarea name="comment" rows="5" cols="50"><?php echo $_POST['comment'];?></textarea>
              <br />
             </p>
          <p><input type="submit" name="send_comment" />
          </p>
        </form>

    You want the form to submit its results to a separate file which processes the data.  If this separate file finds errors, you want it to return control to the form page which would a) display the error messages, and b) populate the fields with the data entered?
    If that's the case, then the processing file would have to send the errors and the data back to the form page either as a) URL variables, b) a cookie, or c) entries in a database.
    Does that help?

  • Loding variables form a php file?

    Hi!
    I'm trying to load some variables from a php file.
    The AS3 code look like this:
    var loader:URLLoader = new URLLoader();
    // specify format as being variables
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, varsLoaded);
    // vars.txt contents:  foo=bar&foo2=bar2
    loader.load(new URLRequest("load_pris.php"));
    function varsLoaded (event:Event):void {
         trace(loader.data is URLVariables); // true
         pris_ruta.text=(loader.data.antal_produkter+"____"+loader.data.loadede); // bar
    where pris_ruta.text is a texbox on the scene.
    The php code looks like this:
    <?php
    include "../../connect/config.php";
    include "../../connect/connect_database.php";
    $antal="20";
    $l="11";
       echo"antal_produkter=$antal&loadede=$l";
    ?>
    The result in the textbox  "pris_ruta" is "undefined___11
    so it seems like it can load the "loadede" varable but not "antal_produkter", anyone that can see a problem in the code tha may cause this?

    yes, because you try to split the LoadVars object! watch, you
    write: myData.onLoad.... and then: this.split... in this case the
    word 'this' refers to myData but your string is INSIDE myData! for
    example if you write in php: stringed=value1****value2****value3...
    and so on, then in flash:
    myData.onLoad = function (ok){
    if (ok){
    trace(myData.stringed);
    var myArray:Array = myData.stringed.split("****"); //or you
    can use: this.stringed...
    because the received variable ("stringed" in the example) is
    placed INSIDE the LoadVars object!!! clear? :)
    adam

  • Sending a variable to a cfm file

    I would like to send a variable from a Flash(Textfield) to a cfm (textfield). I use this in actionscript2 :
    variables_mc.Nom = "Francois";
    variables_mc.getURL ( "http://www.persomode.com/boutique/formulaire_perso.cfm?code_lg=lg_fr&num_formula ire=3", "_blank", "POST");
    In the cfm i have this :
    <input type="TEXT" name="Nom" id="Nom" value="" size="35"/>
    I just want change the value= "Francois".
    Example "Livedocs" in french: http://livedocs.adobe.com/flash/9.0_fr/main/wwhelp/wwhimpl/common/html/wwhelp.ht m?context=LiveDocs_Parts_bak&file=00001009.html
    When I want to send the code, nothing happens.
    What can I do?
    Thanks

    Okay no problem, I got it sorted! Not sure how exactly, I just seemed to start over again (with regards to the posting to a web page bit) and it fixed it.
    Have a play with it and give some feedback: http://www.rightjustified.co.uk/flash/squares/

  • Sending and getting data from external file.

    I'm running it in actionscript 1  and 2 since 3 wouldn't work when getting data from external media. I'm  trying to find out how to post data to a PHP file and getting from that  file I'm trying to make the flash for something that works like a game  but differently. Since I just found out how to make the HTML stuff show  up but a lot of times, some of my text will not appear so I don't know  what's going on.
    Does anyone know how to send and get data both at the same time from a sample file?
    The sample file is example.php
    It has to sent information like ID and NAME
    and it has to get information like Description and userID

    Ned Murphy wrote:
    The tutorial I pointed you to does provide the visuals you requested, both the AS code and sample PHP code, so I can't see where your learning by visuals aspect holds up.... your approach sounds more like you want someone to hand you a tailored solution that you won't need to learn from.  Visuals require reading and doing.  If that fails to get absorbed or you couldn't understand/revise it, what could anyone else prepare for you that would work better?
    I did the tutorial and everything but every time I press the button or even load it, it keeps on saying undefined. I like the have a sample FLA file so I can figure things out. I did everything from the site but it won't work out for me.
    I did step 5 too because it was almost all that I was looking for but it won't even work. keeps on saying undefined. I would show you but webcam max won't work and I can't show you an example.
    EDIT:
    You know it's frustrating when I don't know how the heck I'm supposed to do this stuff. I read the whole dang thing and I still can't get this dang thing working.
    I did everything. EVERYTHING. I just don't get this crap.

  • 404 error when hit submit from php file for requested path E:\vise\jqproject\web\errorpages\403_error.htm

    I have a php script that when I hit submit, it submits the form to another php file with a get command.  This worked about a month ago, but this month it's having issues.  This is what the relevant code looks like in the table php file. Running
    table.php shows the table in the browser and has 404 errors when I hit submit.
    table.php:
        <body>  
            <h1> Visual Evaluation Entry Table </h1>
            <form method="get" action="visEupload.php">
        <table id="bigTable" border="1">
            <thead>
             <tr>
               <!--<th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>-->
             <th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>
             </tr>
            </thead>
            <tbody>
                <tr name="MCBands" id="9214">
                    <!--<td><input name="Yevaluation" ></td>  //Row 0 Column 1-->
                    <!--<td><input name="Mevaluation" ></td>  //Row 0 Column 2-->
                    <!--<td><input name="Cevaluation" ></td>  //Row 0 Column 3-->
                    <!--<td><input name="Kevaluation" ></td>  //Row 0 Column 4-->
                    <!--<td><input name="comment" ></td>  //Row 0 Column 4-->
                    <td><input name="bandY" ></td>  <!--//Row 0 Column 1-->
                    <td><input name="bandM" ></td> <!-- //Row 0 Column 2-->
                    <td><input name="bandC" ></td> <!-- //Row 0 Column 3-->
                    <td><input name="bandK" ></td><!--  //Row 0 Column 4-->
                    <td><input name="comment" ></td>
                </tr>
            </tbody>
        </table>
          <input id="submit" type="submit" class="list" name="submit" value="Submit To Database" >  
           <!--maybe move all php part to other file-->
           </form>
        </body>
    The server is mapped so when we run it off of the server, we use the server ip address and my file name and skip the rest of the path, which works fine with the table.php file, so that mapping appears correct.  When I run it off of the server (from my
    desk) and hit submit it gives me a 404 file or directory not found.  When I run it locally on the server, it's saying it can't find the file name, but it says the requested url is `http://localhost:80/errorpages/403_error.html.`  Physical path: E:\vise\jqproject\web\errorpages\403_error.html. 
    The error message says the notification is from the MapRequestHandler of Module IIS Web Core. I'm not sure why the requested url/path isn't referring to visEupload.php.
    (Running on the server) When I change the action in the table.php get to include the IP address, it's behaving weirdly:
    Module IIS Web Core Notification MapRequestHandler Handler PHP53_via_FastCGI, Requested URL `
        http://localhost:80/13.141.xxx.xx/visEupload.php?bandy=xx&bandM=xx&bandc=hj&bandk=xx&comment=xx&submit=submit+to+database
    physical path shows as E:\visE\jqproject\web\13.141.xxx.xx\visEupload.php
    Login Method and user Anonymous.
    When I change the url to just be
        localhost/viseUpload.php
    it's getting HTTP Error 404 not found.  Any ideas why it's not finding the visEupload.php file?  It has the correct .php extension.  In file properties it's a type php file with name visEupload.php.  
    I took a look at
    [404 error][1] but I see my "allowUnlisted="true" in applicationHost.config. I'm not using sitefinity, though. 
    I'm not sure if something got over-written when we did a server windows update.  
    I know we were having a problem with get and post a couple months ago and we had to add them to the IIS Manager Handler Mappings somewhere, but don't remember where we added them to check.  Since I tried directly accessing the visEupload.php without any
    get (and commented out get code in the file) it should have worked if that was the issue.
    We are running server 2008 R2 and I'm not sure which version of IIS it is.
    In case it matters, this is the contents of the visEupload.php:
        <!DOCTYPE html>
        <html lang="en" >
        <head>
        <meta charset="utf-8" />
            <title>Big Table</title>
        </head>
        <body>
        <?php
            require_once( "../classes/class.OLAPdatabase.php");
            require_once( "../common/Session.php");
            $OLAPdb = new OLAPdatabase;
              handling of the get part is commented out
           ?>
        </body>
    All I can think of is that when I access visEupload.php it's running from the get/action in table.php.  This might be a different user running in the system.  I tried changing visEupload.php file properties to have full control for IUSR and Internet
    Guest Account.  It already has full control for System, and me.  Users have read & exeture and read permissions. Or maybe it's something that has to do with how the directory is mapped out.  I'm not sure what could be affecting this, and
    why the message said it can't find the path to 403_error.html.
      [1]: http://www.sitefinity.com/developer-network/forums/bugs-issues-/server-error-404---file-or-directory-not-found
    Michele Cleary

    Hello,
    for IIS question better ask in http://forums.iis.net/
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

  • Photoshop Elements 10 not importing GPS data from xmp file

    PSE 10 is not importing GPS information from the xmp file. Lightroom correctly records the
    GPS data but this info in not brought in when I add the photo to the PSE 10 catalog.  Has anyone experienced
    the same problem?

    The Google map module and geotagging have only just been added to LR4, released this week. There is no longer a map feature in Elements since Adobe dropped the earlier tie-up with Yahoo. Adobe reserves the right to change and amend partner services and this has disappointed many users of previous versions of PSE. It’s possible that the map could be re-introduced into future versions of PSE but don’t count on it and given the significant price cut on LR4, the decision could be strategic.
     

  • Creating a array from variables passed from php

    I have passed variables from PHP to flash successfully but
    now need to firstly make them into an array. A next button and
    previous button has to trigger the step through the array.
    Any ideas?

    I have a PHP script and I get flash to load the variables
    from it. The code is as follows. Taken out the connection to DB for
    security.
    <?php
    $hostname_conn = "";
    $database_conn = "";
    $username_conn = "";
    $password_conn = "";
    // establish a SQL connection to the host - host, user, pass
    $conn = mysql_pconnect($hostname_conn, $username_conn,
    $password_conn) or trigger_error("The site database appears unable
    to provide a connection. Please contact support.
    ".mysql_error(),E_USER_ERROR); // or die("The site database appears
    unable to provide a SQL connection. Please contact support.");
    // connect to the right DB (there may be multiple db's on the
    server) dbName
    mysql_select_db($database_conn, $conn) or die("The site
    database appears to be unavailable. Please contact support.");
    $qCheck = "SELECT * FROM pics";
    $rsCheck = mysql_query($qCheck) or die("Check Failed :
    ".mysql_error());
    $cCheck = mysql_num_rows($rsCheck);?>
    &img=<?php
    while($row= mysql_fetch_assoc($rsCheck))
    print($row["img"]);
    ?>

  • Read xml from PHP file from Java

    Hello,
    I have a php file that returns xml data like :
    <?xml version="1.0" ?>
    - <reply>
    <message>Friend Request Send</message>
    <status>sucess</status>
    </reply>
    Using java (actually BlackBerry client) I need to get this data and based on status, dispaly the message. I don't want to use any SOAP. I am lost, with how to do and what to do to achieve the goal.
    I guess, I will have to use URL to sent and get the data. Am I correct or got to use something else which is better ??
    Can anyone help me how to do. Any help/guidance is highly appreciated. Any code line to achieve the same will be much better to understand and implement for me.
    Thanks

    Hi,
    Yes, I understand that socket programming can't and shouoldn't be done.
    In most of the cases, I will ahve to pass some data eg. for login - username & password, for register - all fields, etc. Then in that case, if i use URL, I will have to encode url like "http://...com/login?username=John&password=mathew", then open connection, then ????
    If I do url.openStream() straight away, i don't think its correct. I should be able to send data in some form and then get the resonse back.
    How can this be achieved?
    URL url = new URL("http://localhost/login.php");
    HttpURLConnection conn = new HttpURLConnection(url);
    conn.connect();
    conn.setRequestMethd("POST");
    Now how tdo I set parameters or set the url as http://localhost/login.php?username=John& password=mathew
    then how do i get the
    String msg = conn.getResponseMessage(); ' This may be normal msg or xml
    am I going this much correctly or doing something wrong. Then will also have to get the contents ou of xml - message, status, reply.
    Can you let me know about status till now and to move ahead.
    Thanks,

Maybe you are looking for

  • Not showing in Itunes (different)

    Hello, I have read the other posts regarding this issue however I have a different problem I am not seeing the ipod in Itunes (ver 7) However my computer recognizes it, and the updater recogizes it, firmware wersion 1.2 In Itunes when I run Diagnosti

  • Sim card not installed, Sim card not installed

    I purchase an iPhone 2 days back iPhone was perfectly fine using for tow day but sudenely today  fist  the carrier service gone than I restored the phone, the phone went to the original factory setting the phone is asking to restore factory setting I

  • Everytime I try to download itunes I get a message that says its not a valid Win32 application

    Everytime I try to download iTunes on my computer it says it is not a valid Win32 application. Also, when i plug in my ipod, iPhone4S, or my iPhone5, they show up as cameras instead of phones and iPod. How can fix these issues?

  • Crashing on clearing cache and cookies

    When I try to clear the cache and cookies from Firefox it crashes and is unable to clear the cache and cookies.

  • Rollover Buttons: How to add an indicator to my buttons?

    Hello again- I'm using the button widget to make a rollover button, but I would like to add a little colored square to my button to show the reader what page he's on. In other words, if he's on the home page, and he clicks the Contact Page link, when