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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:32:03+00:00 2026-06-08T11:32:03+00:00

For my Flash Builder 4.6 Project I have a http service defined which looks

  • 0

For my Flash Builder 4.6 Project I have a http service defined which looks at a url from our website.

What I’d like to be able to do though is to change the web service url on the fly within the app. i.e. using the existing url as default but having an admin/settings screen to change where the web service points (either stored in our sqlite database or in local memory).

This would be so that we could allow our customers to host their own version of the website/database but still be able to use/download the app through the app stores.

Has anyone had any experience with doing this?

EDIT: Adding some more details after the comments below.

When I created the HTTP Service through the FlashBuilder wizard it creates two web service classes a super class and a sub class which inherits from the super class. All of the code that the wizard populates goes into the super class.

I can assume that the code I need to put in would be in the sub class. But I do not know which function I’d put it in or how.

Below is a sample of the Super’s constructor:

// initialize service control
    _serviceControl = new mx.rpc.http.HTTPMultiService("websitehere");
     var operations:Array = new Array();
     var operation:mx.rpc.http.Operation;
     var argsArray:Array;

     operation = new mx.rpc.http.Operation(null, "loginRequest");
     operation.url = "login.php";
     operation.method = "GET";
     argsArray = new Array("un","pw");
     operation.argumentNames = argsArray;         
     operation.serializationFilter = serializer0;
     operation.properties = new Object();
     operation.properties["xPath"] = "/";
     operation.contentType = "application/x-www-form-urlencoded";
     operation.resultType = valueObjects.Data;
     operations.push(operation);
_serviceControl.operationList = operations;  

I’m not sure what property of the _serviceControl variable I would need to alter.

Also when I search for my website in my code it brings back a .fml file inside a .model directory which seems to get auto refreshed if I change the service url through the wizard. Would this not cause an issue?

I then have the challenge of accessing the user defined url. Within the app we use an sqlite database to store data but I think it would probably be better to use a ‘SharedObject’ which we also use to know what account they are logged into. How reliable is this? I assume I would be able to access this via the Service?

Though the awkward thing is that we were planning to have this configurable on a settings screen that would have been accessed after logging in. But to log in it would already need to know which server to point to.

  • 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-06-08T11:32:04+00:00Added an answer on June 8, 2026 at 11:32 am

    As cghrmauritius’ solution didn’t quite work for me, I am posting up the final solution that did work in my situation.

    public function subConstructor()
    {
        super();
        _serviceControl.baseURL = "http://url1";
    }
    

    Obviously for my final solution I need to implement the shareobject as well but overriding the url was my main priority.

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

Sidebar

Related Questions

I have a nicely working actionscript project in Flash Builder 4.5. However, I'd like
I have an ActionScript only Flash Builder 4 project of which i know that
I have this flex app (it's a flex project created from flash builder), and
I have an AIR project that I was working on Flash Builder 4.5 which
I have a Flash builder project that I am migrating from SDK 4.1.0 to
I'm creating an actionscript project in Flex Builder. I succeed to export from Flash
I have to create an ActionScript 3 project in Flash Builder, and compile with
I have two ActionScript projects in Flash Builder 4.5. The second project needs to
I have an ActionScript project set up using the Flash Builder IDE. Using the
I have an actionscript project in Flash Builder and get 1172 errors on these

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.