TAILIEUCHUNG - The Essential Guide to Flash CS4 friends of ED ADOBE LEARNING LIBRARY PHẦN 8

chuyển động xem xét tất cả các khía cạnh của sự chuyển động của một đối tượng, mà không xem xét các nguyên nhân dẫn đến chuyển động. Chuyển động ngược Chương 7 ĐẠT ĐƯỢC MOTION sống động như thật VỚI chuyển động ngược | USING 3D SPACE IN FLASH CS4 22 23 24 25 26 27 28 function loadimages void numberOfImages for each var image XML in var imageHolder MovieClip new MovieClip var imageLoader new Loader imageLoader false Figure 9-38. Setting mousechildren to false ensures protection against errant mouse clicks. The next step involves ensuring the registration point of the imageHolder is centered by positioning the image loader along the x-and the y-axes. The registration point is the point to which Flash attaches the symbol when it s in motion. In Chapter 7 we changed the registration point of the multiarmed monster so that when its arms moved around they stayed attached to the body. The following code will ensure that the images in your carousel stay in position when the carousel moves them around. 19. Add the following two lines to the end of your current ActionScript code - IMAGE_WIDTH 2 - IMAGE_HEIGHT 2 The following five lines will ensure that the imageHolder has been added to the imageHolder array and that the images load correctly. 20. Add the following five lines under the previous code entered as shown in Figure 9-39 imageHolder new URLRequest imageLoaded _ 9 function loadimages 0 void numberOfImages xml .number_of images for each var image XML in var imageHolder MovieClip new MovieClip var imageLoader new Loader imageLoader ĩmageíỉolder .mousechildren false - IMAGE-WIDTH 2 - IMAGE-HEIGHT 2 imageHolder new URLRequest imageLoaded Figure 9-39. Ensuring the images load correctly into the carousel The final three lines that need to be added for this section of the exercise create a function .

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