Adobe 38039336 - Flash CS3 Professional User Manual page 412

User guide
Hide thumbs Also See for 38039336 - Flash CS3 Professional:
Table of Contents

Advertisement

Note: In some previous versions of Flash, clicking in the left margin of the Script pane selected the line of code; now it
adds or removes a breakpoint. To select a line of code, use Control-click (Windows) or Command-click (Macintosh).
Set and remove breakpoints in the Debugger
• Click in the left margin of the code pane. A red dot indicates a breakpoint.
• Click Toggle Breakpoint or Remove All Breakpoints above the code view.
• Right-click (Windows) or Control-click (Macintosh) to display the context menu, and select Set Breakpoint,
Remove Breakpoint, or Remove All Breakpoints in the File.
• Press Control+Shift+B (Windows) or Command+Shift+B (Macintosh).
The breakpoints XML file
When you work with breakpoints in the Script window, the AsBreakpoints.xml file lets you store breakpoint infor-
mation. This file is written to the Local Settings directory, in the following locations:
Hard Disk\Documents and Settings\User\Local Settings\Application Data\Adobe\Flash
Windows
CS3\language\Configuration\Debugger\
Macintosh HD/Users/User/Library/Application Support/Adobe Flash CS3/Configuration/Debugger/
Macintosh
Here is an example of an AsBreakpoints.xml file:
<?xml version="1.0"?>
<flash_breakpoints version="1.0">
<file name="c:\tmp\myscript.as">
<breakpoint line="10"></breakpoint>
<breakpoint line="8"></breakpoint>
<breakpoint line="6"></breakpoint>
</file>
<file name="c:\tmp\myotherscript.as">
<breakpoint line="11"></breakpoint>
<breakpoint line="7"></breakpoint>
<breakpoint line="4"></breakpoint>
</file>
</flash_breakpoints>
The XML file consists of the following tags:
This node has a
flash_breakpoints
A child node of
file
flash_breakpoints
contains breakpoints.
A child node of
breakpoint
breakpoint.
The AsBreakpoints.xml file is read when you start Flash, and regenerated when you quit. AsBreakpoints.xml is used
to keep track of the breakpoints between development sessions.
Stepping through lines of code
After you set breakpoints in a script and click Continue in the Debugger, you can step through lines of code—that
is, control how the Debugger moves through statements and functions.
For example, in the following ActionScript 2.0 code, suppose a breakpoint is set inside a button on the
line:
myFunction()
attribute, which specifies the version of the XML file. Flash 8 is version 1.0.
version
. This node has a
. This node has a
file
line
attribute, which specifies the name of the file that
name
attribute, which specifies the line number that contains the
FLASH CS3
406
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents