0 Replies Latest reply on Dec 16, 2009 11:56 AM by panos3599

    php flash help


      i have 2 dynamic text in same keyframe the name of 1st text is home_txt and the 2on home_txtb. i won't to load php file so do i with this flash action script code


      var homePageText:String;
      var homePageTextb:String;


      // Assign a variable name for our URLVariables object
      var home_variables:URLVariables = new URLVariables();
      //  Build the varSend URL variable
      var home_varSend:URLRequest = new URLRequest("cms_control_katopsis.php");
      home_varSend.method = URLRequestMethod.POST;
      home_varSend.data = home_variables;
      // Build the varLoader variable
      var home_varLoader:URLLoader = new URLLoader;
      home_varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
      home_varLoader.addEventListener(Event.COMPLETE, home_var_comp);


                 home_variables.sendRequest = "get_home_text";   
              // Send the data to the php file
      function home_var_comp(event:Event):void {
          // Put the about text from mysql database into the about text field
          homePageText = event.target.data.home_text;
          home_txt.htmlText = "" + homePageText;
          homePageTextb = event.target.data.home_textb;
          home_txtb.htmlText = "" + homePageTextb;




      and i have control code for php

      if ($_POST['sendRequest'] == "get_home_text") {


          $sql = mysql_query("SELECT * FROM aithouses WHERE Aithousa='Ergastirio epikoinonion'");


          while($row= mysql_fetch_array($sql)) {
                $home_body = $row["Aithousa"];
                print "home_text=$home_body <br>";


      so my probleme is i can't desplay the next cell of my data on 2on text field.