intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Fixing Compile-Time Bugs

Chia sẻ: Qweqwdasd Qweqdasda | Ngày: | Loại File: PDF | Số trang:2

83
lượt xem
3
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

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).

Chủ đề:
Lưu

Nội dung Text: Fixing Compile-Time Bugs

  1.       < Day Day Up > Fixing Compile-Time Bugs When you export or test a movie, Flash's compiler analyzes all the code in the project. If a syntactical error is found in the code (a curly brace is missing, a colon is used instead of a semicolon at the end of a line of script, and so on), the Output panel automatically opens 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 what's causing the error in addition to the faulty code. All this information helps you easily fix compile-time errors because you simply return to the authoring environment, locate the faulty code, and edit the syntax appropriately. When you receive a compile-time error(s) as a result of an attempt to export your movie to an SWF (either by directly exporting it or by using the Control > Test Movie command), Flash's 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 one location in the project. Although this information is helpful in certain circumstances, large projects can take several seconds to compile; therefore, constant testing can eat up substantial time. In addition, viewing multiple batches of errors at once in the Output panel can get confusing. The Check Syntax button on the Actions panel can help alleviate both problems.
  2. Clicking the Check Syntax button saves time because Flash simply analyzes the code without spending the extra processing time needed to compile the entire movie into a compact SWF. This technique helps eliminate confusion because only the code currently displayed in the Actions window is analyzed. Any errors detected can be edited without jumping around to different locations in your project. < Day Day Up >  
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2