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 6782981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:48:33+00:00 2026-05-26T16:48:33+00:00

I have a flex 4.5 php app that runs perfectly on localhost. When I

  • 0

I have a flex 4.5 php app that runs perfectly on localhost. When I upload it to my remote host, I come across a strange problem when I try to access the production release:

1. If I am the computer running my localhost, then the production site works.

2. If I am on any other computer then the production site returns the error: "Send failed Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost/public/gateway.php'"

In sum, the release build is looking for files on my localhost machine. What am I doing wrong?

EDIT: (If you’re trying this example in Flash Builder 4 then it will work. The problem occurs only in Flash Builder 4.5 for PHP when you try to run the release build on a remote server (you also have to access the remote website with your localhost turned off, as the .swf grabs files from localhost)

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
           xmlns:s="library://ns.adobe.com/flex/spark"
           xmlns:mx="library://ns.adobe.com/flex/mx"
           xmlns:testclass="services.testclass.*"
           minWidth="955" minHeight="600">
<fx:Script>
    <![CDATA[
        import mx.controls.Alert;
        import mx.events.FlexEvent;

        protected function getService(event:FlexEvent):void
        {
            label2.text='this function did NOT work';
            testFunctionResult.token = testClass.testFunction();
        }

    ]]>
</fx:Script>
<fx:Declarations>
    <s:CallResponder id="testFunctionResult"/>
    <testclass:TestClass id="testClass"
                         fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                         showBusyCursor="true"/>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:VGroup width="100%" height="100%" x="75">
<s:Spacer height="25"/>
<s:Label fontSize="18" color="Black" text="did this work?"/>
<s:Label id="label2" color="Blue"
         creationComplete="getService(event)" text="{testFunctionResult.lastResult}"/>
</s:VGroup>

</s:Application>




<?php
class TestClass{
public function testFunction(){
    return "this function worked";
}
}
?>
  • 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-26T16:48:34+00:00Added an answer on May 26, 2026 at 4:48 pm

    It looks like your production SWF has some remote call that is hard coded to a localhost URL. You’ll have to find that and change it.

    I’d look at all the RemoteObject, WebService, and HTTPService calls the app makes. If you use a Services-config file compiled into your app; be sure to look in there too.

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

Sidebar

Related Questions

I have a Flex App that allows you to dynamically build an animation. It
I have read on the adobe website that you could use php with flex.I
SOLVED I have a Flex/PHP app I'm working on. I have a single ArrayCollection
I have Flex/AIR app that connects to a tomcat server via BlazeDS. I'm not
I have a portlet. Inside of this portlet I have Flex application that displays
So, I have Flex project that loads a Module using the ModuleManager - not
I have a flex application that needs the ability to generate and execute JavaScript.
I have a Flex ComboBox that gets populated by a dataprovider all is well...
I have a Flex application that calls a function which searches a large document
I have a Flex application that seems larger than it should be. There is

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.