TAILIEUCHUNG - Flash CS4 Professional in 24 Hours- P12

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 false revealContinue revealCon-tinue revealContinue function revealContinue evt true clickContinue function clickContinue evt var frameNumber 1 Number gotoAndStop frameNumber 322 HOUR 17 Introducing Components r TRY IT YOURSELF Apply the Radio Buttons There s an interesting approach here. The

Đã 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.