TAILIEUCHUNG - Targeting the Main Movie

Bạn có thể đặt mã này vào thời gian nào, chính xác như được hiển thị, và nó sẽ luôn luôn làm cho chính thời gian để chơi. LƯU Ý An phim bên ngoài (SWF) được tải vào một cấp độ cũng được coi là một thời gian root. Trong phần "Nhắm mục tiêu Phim về trình độ," chúng tôi sẽ giải thích làm thế nào này ảnh hưởng đến kịch bản của bạn. | Targeting the Main Movie The main root movie represents the main timeline of an SWF. All of your project s other timelines exist in some way inside this one. Targeting the main timeline is simple. The syntax is You can place this script on any timeline exactly as shown and it will always cause the main timeline to play. NOTE An external movie SWF loaded into a level is also considered a root timeline. In the section Targeting Movies on Levels we ll explain how this affects your scripting. 1. Open in the Lesson03 Assets folder. This file is identical to the one we just finished working on except that two buttons appear on the lower-right portion of the stage. We will script these buttons to resize the main timeline when they are clicked. We will then copy these buttons place them inside our movie clip instances and without modifying the target paths used in the script demonstrate how you can use _root to target the main timeline apart from any other timeline in the SWF. 2. With the Actions panel open select the button with the minus sign over it and add the script 3. 4. on release 5. 6. - 10 7. 8. - 10 9. 10. 11. When this button is pressed and released the main timeline s size will be reduced by 10 percent. Because the button to which we re attaching this action resides on the main timeline which is also the timeline affected by the button this script doesn t require a target path. We use an absolute target path here to demonstrate its universal effectiveness. 3. With the Actions panel open select the button with the plus sign over it and add the script 4. 5. on release 6. 7. 10 8. 9. 10 10. 11. 12. This script is similar to the one in Step 2 except that when this button is pressed and released the main timeline s size will increase by 10 percent. 4. Drag-select both buttons and the text on top of the buttons and copy them. .

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.