Flash Player has reached end of life on December 31, 2020. Support for Flash and Flex applications is now deprecated in TestComplete and will be removed in a future release. |
Description
Use this property to enable or disable logging of Flash Player trace information.
Declaration
FlashSettingsObj.FlashLogEnabled
Read-Write Property | Boolean |
FlashSettingsObj | An expression, variable or parameter that specifies a reference to a FlashSettings object |
Applies To
The property is applied to the following object:
Property Value
True if outputting trace information to Flash Player log file is enabled; False otherwise.
Remarks
-
This property enables (or disables) the TraceOutputFileEnable, TraceOutputBuffered and ErrorReportingEnable options in the Flash player configuration file (mm.cfg).
-
The property affects the settings of Flash Player for Internet Explorer and Firefox.
If you use Google Chrome, access the mm.cfg file and set the needed options manually. The mm.cfg file is located at –
<System_Drive>\<Users>\<User_name>\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\System\mm.cfg
Example
The code below checks whether trace information logging is enabled:
JavaScript, JScript
function FlashLogEnabled()
{
if (Options.FlashSettings.FlashLogEnabled)
Log.Message("The outputting trace information is enabled.")
else
Log.Message("The outputting trace information is disabled.");
}
Python
def FlashLogEnabled():
if Options.FlashSettings.FlashLogEnabled:
Log.Message("The outputting trace information is enabled.")
else:
Log.Message("The outputting trace information is disabled.")
VBScript
Sub FlashLogEnabled()
If Options.FlashSettings.FlashLogEnabled Then
Log.Message "The outputting trace information is enabled."
Else
Log.Message "The outputting trace information is disabled."
End If
End Sub
DelphiScript
function FlashLogEnabled;
begin
if Options.FlashSettings.FlashLogEnabled then
Log.Message('The outputting trace information is enabled.')
else
Log.Message('The outputting trace information is disabled.');
end;
C++Script, C#Script
function FlashLogEnabled()
{
if (Options["FlashSettings"]["FlashLogEnabled"])
Log["Message"]("The outputting trace information is enabled.")
else
Log["Message"]("The outputting trace information is disabled.");
}
See Also
FlashSettings Object Properties
FlashSettings Object
Testing Flash and Flex Applications with the Debug Version of Flash Player - Overview