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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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
logfunction in my Utils package to access the JS console:log.as
init.as
loggingEnabled.as
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.ACTIVATEandEvent.DEACTIVATEto toggleloggingEnabledon 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).