Siêu thị PDFTải ngay đi em, trời tối mất

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 Movies on Levels doc
MIỄN PHÍ
Số trang
10
Kích thước
25.7 KB
Định dạng
PDF
Lượt xem
926

Tài liệu Targeting Movies on Levels doc

Nội dung xem thử

Mô tả chi tiết

< Day Day Up >

Targeting Movies on Levels

With the loadMovie() action, Flash enables you to load more than one .swf file into the

Flash player window simultaneously (something you'll learn how to do in the exercise

that follows, and that we discuss more in Lesson 18, "Loading External Assets"). SWFs

exist in the Flash player window in what are known as levels. Functionally, levels (for

holding SWFs) are similar to layers (for holding content) on a timeline: they are a plane

of existence, a depth that puts a loaded SWF and all its content on top of or below other

movies that have been loaded in the player window. You can load hundreds of external

.swf files into various levels in the player window.

When you use the loadMovie() action to load a movie into a level, you must assign a

level number to which the movie will be loaded. However, you don't need to load movies

into sequential levels. You can assign arbitrary numbers, such as 46 or 731, if you prefer.

Once a movie has been loaded into a level, its target path is its level number. For

example, if you were to load a movie into Level 37, movies on other levels would target

that movie using this target path:

_level37

To tell the main timeline on this level to stop, you would use the following syntax:

_level37.stop ();

NOTE

The first movie to appear in the player window automatically loads into Level 0.

A level's target path is the key to controlling the SWF loaded there, including its main

timeline and any movie clip instances it may contain.

Because you're loading multiple SWFs into the player window using the loadMovie()

action, it's important to note that each SWF's main timeline is considered the _root

Tải ngay đi em, còn do dự, trời tối mất!