Updating Flash Player for testing
79
The Debug > List Objects command in test mode lists TextField objects. If an instance name is
specified for a text field, the Output panel displays the full target path including the instance
name in the following form:
Target = "
target path
"
Using the trace statement
When you use the
trace
statement in a script, you can send information to the Output panel.
For example, while testing a movie or scene, you can send specific programming notes to the
panel or have specific results appear when a button is pressed or a frame is played. The
trace
statement is similar to the JavaScript
alert
statement.
When you use the
trace
statement in a script, you can use expressions as parameters. The value
of an expression is displayed in the Output panel in test mode, as shown here:
The
trace
statement returns values that appear in the Output panel.
onClipEvent(enterFrame){
trace("onClipEvent enterFrame " + ent+)
}
Updating Flash Player for testing
You can download the latest version of Flash Player from the Macromedia Support Center at
www.macromedia.com/support/flash
and use it to test your SWF files with the most recent
version of Flash Player.
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...