tailieunhanh - Thiết kế flash với flash cs5 part 67

Debugging cho ActionScript Các nhà thiết kế của Flash bao gồm các tính năng chỉnh sửa và gỡ lỗi để làm gỡ lỗi dễ dàng hơn. Bạn có thể nhanh chóng thiết lập và gỡ bỏ breakpoint để Kiểm tra các phần khác nhau của các code của bạn để xác định xem đó là hoạt động chính xác. Flash sử dụng một trình sửa lỗi khác nhau cho các tập tin ActionScript (giao đất rừng hay AS) hơn là nó cho ActionScript các tập tin | Show Symbol Definitions. Select to display all the elements associated with a symbol. Copy All Text To Clipboard. Select to copy selected text to the Clipboard. Cut Copy Paste And Clear. Select to perform these functions on a selected element. Expand Branch. Select to expand the navigation tree at the selected element. Collapse Branch. Select to collapse the navigation tree at the selected element. Collapse Others. Select to collapse the branches in the navigation tree not containing the selected element. Print. Select to print the hierarchical display list currently displayed in the Movie Explorer. The Show buttons give you the option to show or hide different elements of the movie. These options will only impact the Movie Explorer not the Flash Stage. Show Text Show Buttons Movie Clips and Graphics Show ActionScripts Show Video Sounds and Bitmaps Show Frames and Layers Click the Customize Which Items To Show button to customize what items display in the Movie Explorer window. Chapter 17 Debugging a Movie 415 Debugging for ActionScript The designers of Flash included editing and debugging features to make debugging easier. You can quickly set and remove breakpoints to check different parts of your code to determine if it s working correctly. Flash uses a different debugger for ActionScript files FLA or AS than it does for ActionScript files. The functionality is similar but the look and feel is different. The debugger for ActionScript uses the Debug workspace that displays the Debug Console Variables and Output panels along with the Actions panel or Script window. The Debug Console displays the call stack scripts containing the functions in the call stack and contains buttons to step through the code. The call stack shows the current list of nested function calls ready for execution. The Variables panel displays variables and their current values. When a problem is encountered Flash displays the line of code in the Compiler Errors panel. .