TAILIEUCHUNG - Testing Your First Script

Thử nghiệm đầu tiên Script của bạn Nó sẽ là tinh khiết để tin tưởng ActionScripts luôn luôn làm việc chính xác như kế hoạch. Cũng như rất dễ dàng để quên một dấu phẩy hoặc viết sai một từ khi viết một lá thư, thật dễ dàng để làm cho những sai lầm khi viết kịch bản, bất kể bạn là làm thế nào quen thuộc với ActionScript. | Testing Your First Script It would be pure fantasy to believe ActionScripts always work exactly as planned. Just as it s easy to forget a comma or to misspell a word when writing a letter it s easy to make mistakes when writing scripts regardless of how familiar you are with ActionScript. However unlike your letter recipients Flash is unforgiving when it comes to script errors. In scripting errors mean bugs and bugs mean your script either won t work at all or won t work as planned. Luckily Flash provides some handy ways to test scripts and stamp out bugs. 1. If isn t already open open it now. This is the file we set up in the last exercise. In this exercise we ll test the project s functionality from within Flash s testing environment. 2. From Flash s menu bar choose Control Test Movie. This command creates a fully functional version of your exported movie and displays it in Flash s testing environment. Although there are all kinds of ways you can test your movie in this environment determining overall file size streaming capability and appearance we re interested in testing its interactive features which means doing everything we can to mess it up. TIP Enlist as many friends and colleagues as possible to help you test your project. This way you have a greater chance of testing every possible scenario and thus finding all the potential bugs. 3. Enter various amounts in the Enter the amount you would like to pay text field then press the Pay Now button. o Enter an amount less than 60. If you enter 35 in this text field the message You underpaid your bill by 25 dollars should appear and the stamp_mc movie clip instance should show the Underpaid stamp. o Enter an amount more than 60. If you enter 98 in this text field the message You have overpaid your bill by 38 dollars should appear and the stamp_mc movie clip instance should show the Overpaid stamp. This is what should happen. What really happens is that the message shows an overpayment of -38 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.