Fl.togglebreakpoint(), Fl.tools, Fl.trace() – Adobe Extending Flash Professional CS5 User Manual
Page 282
260
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
fl.toggleBreakpoint()
Availability
Flash Professional CS5.
Usage
fl.toggleBreakPoint(String fileURI, int line, Boolean enable)
Parameters
fileURI
A string; the URI of the the AS file in which to toggle the breakpoint.
line
An integer; the line number at which to toggle the breakpoint.
enable
Boolean; if set to true, the breakpoint is enabled. If set to false, the breakpoint is disabled.
Description
Toggles a breakpoint for the given .as file at the given line. If
enable
is false, the breakpoint currently stored at that
line will be erased.
Example
The following example enables a breakppoint at line 10 of the AS file located at C:\AS\breakpointTest.as:
fl.toggleBreakPoint("file:///C|/AS/breakpointTest.as", 10, 1);
fl.tools
Availability
Flash MX 2004.
Usage
fl.tools
Description
Read-only property; an array of Tools objects (see
). This property is used only when creating extensible
tools.
fl.trace()
Availability
Flash MX 2004.
Usage
fl.trace(message)
Parameters
message
A string that appears in the Output panel.