Specifications

231ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Log file location
The default log file location changed between the initial Flash Player 9 release and the Flash Player 9 Update. In
the initial Flash Player 9 release, the default location was the same directory as the mm.cfg file and you could
update the log file location and name through the
TraceOutputFileName property.
Beginning with the Flash Player 9 Update, you cannot modify the log file location or name. The filename is
flashlog.txt, and its location is hard-coded, depending on your operating system. The following table shows the
flashlog.txt file location:
Determining Flash Player version in Flex
To determine which version of Flash Player you are currently using—the standard version or the debugger
version—you can use the Capabilities class. This class contains information about Flash Player and the system that
it is currently operating on. To determine if you are using the debugger version of Flash Player, you can use the
isDebugger property of that class. This property returns a Boolean value: the value is true if the current player
is the debugger version of Flash Player and
false if it is not.
The following example uses the
playerType, version, and isDebugger properties of the Capabilities class to
display information about the Player:
<?xml version="1.0"?>
<!-- logging/CheckDebugger.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import flash.system.Capabilities;
private function reportVersion():String {
if (Capabilities.isDebugger) {
return "Debugger version of Flash Player";
} else {
return "Flash Player";
}
}
private function reportType():String {
return Capabilities.playerType + " (" + Capabilities.version + ")";
Operating System Log file location
Windows 95/98/ME/2000/XP
C:\Documents and Settings\username\Application Data\Macromedia\Flash
Player\Logs
Windows Vista
C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs
Macintosh OS X
/Users/username/Library/Preferences/Macromedia/Flash Player/Logs/
Linux
/home/username/.macromedia/Flash_Player/Logs/