Animate includes a separate debugger for ActionScript 3.0 that operates differently from the ActionScript 2.0 debugger. The ActionScript 3.0 debugger only works with ActionScript 3.0 FLA and AS files. FLA files must have publish settings set to Flash Player 9. When you initiate an ActionScript 3.0 debugging session, Animate launches the stand-alone debug version of Flash Player to play the SWF file. The debug Flash player plays the SWF in a separate window from the Animate authoring application window.
The ActionScript ® 3.0 Reference for the Adobe ® Flash ® Platform contains the ActionScript language elements, core libraries, and component packages and classes for the tools, runtimes, services and servers in the Flash Platform. Filter by product using the preset filters.
The ActionScript 3.0 debugger converts the Animate workspace to a debug workspace that displays panels that are used for debugging. It also includes the Actions panel and/or Script window, the Debug console, and the Variables panel. The Debug console displays the call stack and contains tools for stepping through scripts. The Variables panel displays the variables in the current scope with their values and allows you to update those values yourself.
The following resourcesprovide additional detailed information about debugging ActionScript3.0:
The way you begin a debugging session depends on the type of file you are working on. During a debugging session, Animate interrupts the execution of ActionScript when it encounters a breakpoint or a runtime error.
When Animate initiates a debug session, it adds special information to the SWF file that it exports for the session. This information allows the debugger to provide the specific line numbers in the code where errors are encountered.
You can include this special debugging information in all SWF files created from a specific FLA file in the Publish settings. This allows you to debug the SWF file even if you do not explicitly initiate a debug session. This debugging information makes the SWF file slightly larger.
Add debugging information to all SWF files createdfrom a FLA file
Addbreakpoints to ActionScript code to interrupt the execution of thecode. After execution is interrupted, you can step through and executethe code line by line, view different sections of your ActionScript,view the values of variables and expressions, and edit variablevalues.
Note:
Breakpoints cannot be added to ASC (ActionScript for Communication)or JSFL (Flash JavaScript) files. Download ps1 games for pc.
Descargar Adobe Flash Actionscript 3.0
Adobe Flash Button Actionscript 3.0
After the ActionScript execution is interrupted at a breakpoint or runtime error, you can step through the code line by line. You may choose to step into function calls or step over them. You can also choose to continue executing the code without stepping.
When code execution stops in the debugger, you can view the call stack in the Debug Console and display the scripts containing the functions in the call stack. The call stack shows the current list of nested function calls that are waiting to complete execution.
You can view the individual scripts that contain each function.
Viewand edit the values of variables and properties in the Variablespanel.
Actionscript 3.0
Control the types of compiler warnings that the ActionScript compiler generates in the Compiler Errors panel. When the compiler reports an error, double-click the error to navigate to the line of code that caused the error.
When Animate encounters an error in ActionScript code, either during compiling or execution, it reports the error in the Compiler Errors panel. Navigate to the line of code that caused the error from the Compiler Errors panel.
Adobe Flash Actionscript 3.0
With ActionScript 3.0, you can debug a remote SWF file by using the stand-alone, ActiveX, or plug‑in version of the Debug Flash Player, which you can find in the Animate install directory/Players/Debug/ directory. However, in the ActionScript 3.0 Debugger, remote debugging is limited to files located on the same localhost as the Animate authoring application, being played in the stand-alone debug player, ActiveX control, or plugin.
To permit remote debugging of the file, enable debugging in the Publish settings. You can also publish your file with a debugging password to ensure that only trusted users can debug it.
As in JavaScript or HTML, users can view client-side variables in ActionScript. To store variables securely, send them to a server-side application instead of storing them in your file. However, as a developer, you may have other trade secrets, such as movie clip structures, that you do not want to reveal. You can use a debugging password to protect your work.
Enable remote debugging of a SWF file and set adebugging password
![]()
In ActionScript 3.0 FLA files, codein frame scripts cannot be debugged. Only code in external AS filescan be debugged with the ActionScript 3.0 Debugger.
Adobe Flash Actionscript 3.0 Gotoandplay
Twitter™ and Facebook posts are not covered under the terms of Creative Commons.
Adobe Flash Cs5 Actionscript 3.0
Legal Notices | Online Privacy Policy
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |