Fixing Compile-Time Bugs
Số trang: 2
Loại file: pdf
Dung lượng: 23.19 KB
Lượt xem: 7
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Khi bạn xuất hoặc thử nghiệm một bộ phim, Flash của trình biên dịch phân tích tất cả các mã trong dự án. Nếu một lỗi cú pháp được tìm thấy trong các mã (một thanh xoăn là mất tích, dấu hai chấm được sử dụng thay vì dấu chấm phẩy ở cuối một đường dây của kịch bản, vv), bảng điều khiển tự động mở ra và hiển thị một danh sách chi tiết về lỗi (s).
Nội dung trích xuất từ tài liệu:
Fixing Compile-Time Bugs < Day Day Up >Fixing Compile-Time BugsWhen you export or test a movie, Flashs compiler analyzes all the code in the project. Ifa syntactical error is found in the code (a curly brace is missing, a colon is used instead ofa semicolon at the end of a line of script, and so on), the Output panel automaticallyopens and displays a detailed listing of the error(s).These auto-generated error messages include the scene name, layer name, frame number,and line number of the faulty code. They also include a simple explanation about whatscausing the error in addition to the faulty code. All this information helps you easily fixcompile-time errors because you simply return to the authoring environment, locate thefaulty code, and edit the syntax appropriately.When you receive a compile-time error(s) as a result of an attempt to export your movieto an SWF (either by directly exporting it or by using the Control > Test Moviecommand), Flashs compiler analyzes the code in the entire project (all timelines, scenes,and frames). As a result, the Output panel may display errors that exist in more than onelocation in the project. Although this information is helpful in certain circumstances,large projects can take several seconds to compile; therefore, constant testing can eat upsubstantial time. In addition, viewing multiple batches of errors at once in the Outputpanel can get confusing. The Check Syntax button on the Actions panel can help alleviateboth problems.Clicking the Check Syntax button saves time because Flash simply analyzes the codewithout spending the extra processing time needed to compile the entire movie into acompact SWF. This technique helps eliminate confusion because only the code currentlydisplayed in the Actions window is analyzed. Any errors detected can be edited withoutjumping around to different locations in your project. < Day Day Up >
Nội dung trích xuất từ tài liệu:
Fixing Compile-Time Bugs < Day Day Up >Fixing Compile-Time BugsWhen you export or test a movie, Flashs compiler analyzes all the code in the project. Ifa syntactical error is found in the code (a curly brace is missing, a colon is used instead ofa semicolon at the end of a line of script, and so on), the Output panel automaticallyopens and displays a detailed listing of the error(s).These auto-generated error messages include the scene name, layer name, frame number,and line number of the faulty code. They also include a simple explanation about whatscausing the error in addition to the faulty code. All this information helps you easily fixcompile-time errors because you simply return to the authoring environment, locate thefaulty code, and edit the syntax appropriately.When you receive a compile-time error(s) as a result of an attempt to export your movieto an SWF (either by directly exporting it or by using the Control > Test Moviecommand), Flashs compiler analyzes the code in the entire project (all timelines, scenes,and frames). As a result, the Output panel may display errors that exist in more than onelocation in the project. Although this information is helpful in certain circumstances,large projects can take several seconds to compile; therefore, constant testing can eat upsubstantial time. In addition, viewing multiple batches of errors at once in the Outputpanel can get confusing. The Check Syntax button on the Actions panel can help alleviateboth problems.Clicking the Check Syntax button saves time because Flash simply analyzes the codewithout spending the extra processing time needed to compile the entire movie into acompact SWF. This technique helps eliminate confusion because only the code currentlydisplayed in the Actions window is analyzed. Any errors detected can be edited withoutjumping around to different locations in your project. < Day Day Up >
Tìm kiếm theo từ khóa liên quan:
máy tính mạng máy tính internet phần mềm ứng dụng lập trình SQL HTML sever web XMLGợi ý tài liệu liên quan:
-
Giáo án Tin học lớp 9 (Trọn bộ cả năm)
149 trang 263 0 0 -
Ngân hàng câu hỏi trắc nghiệm môn mạng máy tính
99 trang 251 1 0 -
Giáo trình Hệ thống mạng máy tính CCNA (Tập 4): Phần 2
102 trang 244 0 0 -
Bài giảng: Lịch sử phát triển hệ thống mạng
118 trang 244 0 0 -
47 trang 237 3 0
-
Đề cương chi tiết học phần Thiết kế và cài đặt mạng
3 trang 234 0 0 -
80 trang 216 0 0
-
122 trang 212 0 0
-
Giáo trình Hệ thống mạng máy tính CCNA (Tập 4): Phần 1
122 trang 210 0 0 -
Giáo trình môn học/mô đun: Mạng máy tính (Ngành/nghề: Quản trị mạng máy tính) - Phần 1
68 trang 201 0 0