Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4020480
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:14:01+00:00 2026-05-20T10:14:01+00:00

Problem: I call a PHP file using an HTTPService. I set the result of

  • 0

Problem:

I call a PHP file using an HTTPService. I set the result of this HTTPService to a function which populates a testTextArea with whatever the PHP file has returned (echoed). This work fine when I run the application from flash builder i.e. I get strings in the testTextArea, echoed by my PHP file. But this does not work fine when I make the Release of the project and the testTextArea gets populated by the whole code of PHP file.

Code:

     private function addUserServiceHandler(event:ResultEvent):void{
            testTextArea.text = event.result.toString(); //This outputs the whole php file in to the textArea as if it were a string
        }


        private function saveButtonClicked():void{
            addUserService.send();
        }

    ]]>
</fx:Script>

<fx:Declarations>
    <mx:HTTPService id="addUserService" url="addUser.php" resultFormat="text" method="POST" result="addUserServiceHandler(event)" >
        <mx:request xmlns="">
            <firstName>{firstNameTextInput.text}</firstName>
            <lastName>{lastNameTextInput.text}</lastName>
            <imageName>{uploadTextInput.text}</imageName>
            <adultContent>{adultContentRadioGroup.selectedValue}</adultContent>
            <p2p>{p2pRadioGroup.selectedValue}</p2p>
            <priority>{priorityRadioGroup.selectedValue}</priority>
        </mx:request>
    </mx:HTTPService>
<fx:Declarations>



<s:Button id="saveButton" includeIn="AddUser" x="313" y="128" label="Save" width="187" height="33" click="saveButtonClicked()"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:14:01+00:00Added an answer on May 20, 2026 at 10:14 am

    The problem was arising because I was mistakenly running my html file from harddisk by double clicking it i.e. I wasn’t running it with localhost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I call a php file using Ajax, I do this : function logIntoApp(){
I have a PHP file using json_encode to make a single call, but it
I'm using a PHP file (as part of a wordpress plugin), which contains several
I am using an Ajax call to a PHP file to get data from
Using jQuery to make an AJAX call to a PHP file results in the
A regular function can contain a call to itself in its definition, no problem.
Problem: I have an address field from an Access database which has been converted
I have a php file that I use to print pdf (using FPDF). In
I have this function handling ajax calls: function ajaxPost (divNode, parameters, file) { if
I've a php file in which I've codes like $xml_time = $update->$node->timestamp; **//Case 1**

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.