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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:44:25+00:00 2026-05-11T10:44:25+00:00

I recently ran into an embarrassing situation with some Flash coding where I had

  • 0

I recently ran into an embarrassing situation with some Flash coding where I had to accidentally sent clients a build where not all my debugging flags and variables were unset. (It was sending requests to the debug instead of release server, etc…)

Part of this was poor code organization on my part; I’ve resolved that.

However, Flash doesn’t seem to allow one to set different build configurations, and the Actionscript Compile settings hosts a variety of switches arranged in such a fashion that forgetting to check/uncheck something (OMG, I forgot to disable debugger support!) might just happen, as it did with me. In any case, I find that manually jumping between my release config and debug config to be easy to screw up.

So, other developers, what techniques do you use to error-proof jumping between your testing config, and the build config that you issue to your boss/clients/whoever?

I know I should probably slow down but I would much prefer setting up something to where I could just flip a switch. I’m just jumping back into Flash after a long hiatus (Flash MX + a bit of 2004).

Oh, and I’m aware of the futility of disabling debug support and setting import passwords and all that, my goal is to simply keep the script kiddies out of my project. Decompilers trump all that so…..

Anyways, Thanks!

  • 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. 2026-05-11T10:44:25+00:00Added an answer on May 11, 2026 at 10:44 am

    I use an environment class, like this:

    public class MyEnvironment {   public static const DEBUG:Boolean = true;   public static const SERVER:String = 'localhost';   // More here } 

    Import this into your main ActionScript class, and make sure all of your helper functions reference it. For instance, your debugger functions should only run if MyEnvironment.DEBUG is true, and your network functions should send requests to MyEnvironment.SERVER.

    In my setup, I’d save this as MyEnvironment.as. (Obviously, the class name would be different in real life.) I’d also save copies as MyEnvironment.as-debug and MyEnvironment.as-release; the latter would have different settings. Then, if I need a release build, my build script would copy MyEnvironment.as-release to MyEnvironment.as (overwriting the original), and recompile. That’ll load all of my release settings into my main ActionScript class; opposite if I run the script for a debug build.

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

Sidebar

Ask A Question

Stats

  • Questions 88k
  • Answers 88k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You do this in the same way you'd do it… May 11, 2026 at 5:40 pm
  • Editorial Team
    Editorial Team added an answer If the format that your date picker is passing in… May 11, 2026 at 5:40 pm
  • Editorial Team
    Editorial Team added an answer New Solution This is a new that solution detects when… May 11, 2026 at 5:40 pm

Related Questions

We have a ftp system setup to monitor/download from remote ftp servers that are
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
I ran into an interesting behavior recently. It seems that if I override .equals()
Here's a problem I ran into recently. I have attributes strings of the form

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.