Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu Targeting the Main Movie ppt
Nội dung xem thử
Mô tả chi tiết
< Day Day Up >
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:
_root.play();
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 rootTarget1.fla 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