Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Phản ứng với nhiều điều kiện cho một khởi động thành công tên lửa xảy ra, một số điều kiện phải được đáp ứng. Một trong những biến số quan trọng nhất ảnh hưởng đến một khởi động tên lửa là thời tiết, giúp xác định không chỉ làm thế nào tên lửa được phóng nhưng làm thế nào nó kiểm soát. | Reacting to Multiple Conditions For a successful rocket launch to occur a number of conditions must be met. One of the most important variables affecting a rocket launch is weather which helps determine not only how the rocket is propelled but how it s controlled. In the following exercise we ll begin scripting a project so that the rocket will react differently based on randomly generated weather conditions. 1. Open rocketLaunch1.fla in the Lesson08 Assets folder. This file contains a single scene made up of eight layers named according to their contents. Let s look at the various elements in the scene. The Weather layer contains a movie clip instance the size of the movie itself. This movie clip named weather_mc represents the background sky in the scene. Its timeline contains three frame labels Sunny Rainy and Night. At each of these frame labels the sky graphic changes to match the name of the label. At Sunny the sky appears sunny at Rainy it appears overcast at Night it looks dark. The Ground Central Graphics layer contains the mountains ground and main Central Command graphics. There is also a small movie clip instance of a red dot which blinks to indicate the launch location on the globe. The Rocket layer obviously contains our rocket that is a movie clip instance named rocket_mc. Its timeline contains two frame labels off and on. At the off label the rocket doesn t show a flame at the on label it does providing a visual indicator of the rocket in motion. The Control Panel layer contains several elements the most conspicuous of which is the red Launch button named launch_btn. This button will be used not only to launch the rocket but also to reset the scene after a launch has been attempted. Below this button is a movie clip instance named thrustBoost_mc that includes the text Thrusters. This clip also contains two frame labels on and off. At the on label the text appears big and red to provide a visual indication that thrust is being applied to the rocket.