Đang chuẩn bị liên kết để tải về tài liệu:
Flash CS4 Professional in 24 Hours- P12

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Flash CS4 Professional in 24 Hours- P12: The creation of this book could not have happened without the skill and patience of many, many people at Sams Publishing. Most of all, I want to thank Mark Taber for offering me this opportunity and Philip Kerman for writing such a great book. I also greatly appreciate the efforts of Songlin Qiu for keeping me on track and organized, not an easy task. | Using the RadioButton Component 321 TRY IT YOURSELF Unlike the Button components you created in the previous task each of your RadioButton component instances changes to reflect its current label. That is you can see the labels Novice Intermediate and Expert without even testing the movie. This feature is called Live Preview and it shows the benefit of populating a Component s label property with the Parameters panel over populating it in the ActionScript code as you did in the previous task. Although your radio buttons are nice they don t really do anything. Follow these steps to give the buttons some practical use Apply the Radio 1. Using the movie from the preceding task drag a Button component Batons onto the Stage. Use the Component Inspector to set this button s label to Continue. Give the Button component the instance name continueButton. 2. Make sure the button is on the Stage in Frame 1 with the three instances of radio buttons. Go to Frame 2 and insert a blank keyframe by pressing F7. On the screen you create the content for the Novice. Put some text onscreen that says Welcome novice . Insert a blank keyframe on Frame 3 and draw the content for the Intermediate user. Finally on Frame 4 insert a blank keyframe and draw some content for the Expert. Go back to Frame 1 to set up the code for the user to interact with these buttons. 3. Click Frame 1 and open the Actions panel. Type this code in it stop continueButton.enabled false noviceButton.addEventListener MouseEvent.CLICK revealContinue intermediateButton.addEventListener MouseEvent.CLICK revealCon-tinue expertButton.addEventListener MouseEvent.CLICK revealContinue function revealContinue evt continueButton.enabled true continueButton.addEventListener MouseEvent.CLICK clickContinue function clickContinue evt var frameNumber 1 Number noviceButton.group.selectedData gotoAndStop frameNumber 322 HOUR 17 Introducing Components r TRY IT YOURSELF Apply the Radio Buttons There s an interesting approach here. The

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.