TAILIEUCHUNG - Configuring Component Properties

Cấu hình phần Properties Khi bạn đang nhận thức rõ bởi hiện nay, yếu tố đồ họa nhất được sử dụng trong một ứng dụng Flash có đặc tính cấu hình mà ActionScript có thể truy cập và thay đổi trong khi các ứng dụng đang chạy. | Configuring Component Properties As you re well aware by now most graphical elements used in a Flash application have configurable properties that ActionScript can access and change while the application is running. For example movie clip instances have properties that allow you to change their position rotation and transparency. Because components are usually nothing more than enhanced movie clips it s obvious that they too have configurable properties that can be accessed and changed while a movie plays however due to their enhanced nature working with component properties is slightly different from working with standard movie clip instance properties. Component properties can be categorized into two groups properties that are common to all component instances to Macromedia-based components at least and properties that are unique to each type of component. Let s look at both. NOTE You may have installed some third-party components that don t abide by the following guidelines. This discussion focuses on the use and capabilities of the components that come pre-installed with Flash. Common Properties In Lesson 7 Creating Custom Classes you learned about object-oriented programming. In this lesson you put that information to use. How Well as already mentioned most component instances have a set of common properties. This is because most components inherit properties from the UlComponent class which itself inherits properties from the UlObject class. Both of these object classes are automatically and invisibly added to your project whenever you add a component instance. Let s break down this concept by looking at the Button component. First UlObject is an object class that defines a number of properties The programming that gives these properties meaning exists within the UIObject class definition. Next the UIComponent class .

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