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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:33:01+00:00 2026-05-25T18:33:01+00:00

I want to log errors of my flash application after I released it. I

  • 0

I want to log errors of my flash application after I released it.
I will save the logs on files on the web server.

Do you know how to get error message and stack trace when you use normal version(not debug version) of flash player?

  • 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-25T18:33:02+00:00Added an answer on May 25, 2026 at 6:33 pm

    Client Side Logging

    If you want to access debugging tools in-browser (rather than in the Flash Debugger), there are a number of options.

    The simplest option is to download a browser extension, and continue to use trace.

    I do a bunch of cross-browser checking, so I’ve used a custom log function in my Utils package to access the JS console:

    log.as

    package com.zzzzbov.utils
    {
      import flash.external.ExternalInterface;
    
      public function log(... args):void
      {
        CONFIG::DEBUG
        {
          trace(args);
          if (loggingEnabled && ExternalInterface.available)
          {
            try
            {
              if (init === null)
              {
                init = ExternalInterface.call('eval', 'if(window.flashlog){false;}else{window.flashlog=function(){if(window.console&&console.log){if(console.log.apply){console.log.apply(console,arguments);}else{for(var i=0;i<arguments.length;i++){console.log(arguments[i]);}}}};true;}');
              }
    
              if (init)
              {
                var values:Array = new Array('flashlog');
                ExternalInterface.call.apply(ExternalInterface, values.concat(args));
              }
            }
            catch (e:Error)
            {
              //nothing really can be done
            }
          }
        }
      }
    }
    

    init.as

    package com.zzzzbov.utils
    {
      internal var init:* = null;
    }
    

    loggingEnabled.as

    package zfl.utils
    {
      internal var loggingEnabled:Boolean = true;
    }
    

    There are a lot of things that can be improved, and a few things that are required to use this function. You’ll need CONFIG::DEBUG defined, additionally you’ll want to add an event listener to the stage for Event.ACTIVATE and Event.DEACTIVATE to toggle loggingEnabled on and off to prevent flash from crashing. You’ll also need to provide script access to the flash video.

    Server Side Logging

    If you’d like to log messages on a server using Flash, send a simple Url Request using a URLLoader passing the message as a parameter to a server-side script. The logging script being called will need to be written in a server-side language such as PHP or ASP.NET.

    Care should be taken to authenticate the request from Flash to prevent malicious access (you wouldn’t want someone injecting some executable code into your filesystem).

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

Sidebar

Related Questions

I want to save logs of user's operation by accessing log script file(for example,
I want to log some seemingly random errors I'm getting in a Delphi written
I am using GWT2.0.1,when I am running web application then I get following error
I want to log JavaScript errors so I'm overriding window.onerror like this: window.onerror =
I want log4j to log my errors in a MySql database, but the official
I'm looking for the best way to log errors in an ASP.NET application. I
I have a question regarding logging in a Java application. I want to log
I have a paint program that has no save function. I want to know
I want to log/write all javascript errors to one text file when ever an
I want to use VBScript to catch errors and log them (ie on error

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.