TAILIEUCHUNG - Adobe Flash CS3: The Professional Portfolio- P51

Adobe Flash CS3: The Professional Portfolio- P51:Now you can easily create web-ready images and animations within the familiar Adobe environment. With the recent acquisition of Macromedia, Adobe has added Flash to its suite of creative products, thus solidifying its position as the world's leading developer of graphic and visual communications tools. The Against The Clock Portfolio Series Flash title ensures that you'll learn everything you need to complete any job that requires Flash skills | 7. In the Actions toolbox expand Language Elements Statements Keywords Directives Statement and double-click if. Note 8. Between the parentheses in the if condition type a chk The equality operator determines whether the two variable values are equal. In plain English this line of code checks to see if the value of a is equal to variable chk. Remember chk pos 1 or the number of the character instance with the lowest x position. var chksinc-pos l j vas a inc for a-i a 4 a if awwchk I This loop runs until a is less than or equal to 4 and a is incremented each time the loop runs. First run a 1 The program enters the if condition compares the value of a to the value of chk. Second run a 2 The program enters the if condition compares the value of a to the value of chk. Tliird run a 3 The program enters the if condition compares the value of a to the value of chk. Fourth run a 4 The program enters the if condition compares the value of a to the value of chk. Fifth run a 5 A is not less than or equal to 4 so the program exits the loop. You now need to tell the program what to do when a equals chk the character wins the race and what to do if a does not equal chk the character does not win the race . 9. After the opening curly brace of the if condition press Return Enter. 1 0. On line 23 of the script pane type this char a _mc .goto AndPlay 26 This brace closes the if statement. This brace closes the for statement. This statement applies the same technique you used earlier to move a character based on a randomly generated number. In other words you are appending strings to the value of variable a to result in a character instance name charl_mc char2_mc char3_mc or char4_mc . So if the value of a equals the value of chk the character wins the race. The gotoAndPlay command calls Frame 26 of that movie clip s timeline. 1. Press Return Enter to move to the next line in the script pane. Project 5 Gotor Roce Gome 23 1 2. In the Actions toolbox double-click else Language Elements

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.