tailieunhanh - Flash Builder 4 and Flex 4 Bible- P9

Flash Builder 4 and Flex 4 Bible- P9: When Macromedia first released Flash MX in 2002, the product was branded as the new way to build Rich Internet Applications (known by the acronym RIA). The term was invented at Macromedia to describe a new class of applications that would offer the benefits of being connected to the Internet, including access to various types of Web-based services, but would solve many of the nagging issues that had been inherent in browser-based applications since the mid-1990s | CHAPTER Controlling Animation and Working with Drag and Drop Flash Player was originally created as a platform for presenting animation over the Web. Future Splash Animator the original ancestor of the Flash authoring environment and Flash Player was a Java-based software product that was integrated into the browser in much the same manner as Flash Player is today. Millions of Flash developers worldwide create compelling content designed for presentation in a Web application. Animation and related visual wizardry is the most common goal and the most common result of documents developed in the Flash authoring environment and distributed through Flash Player. Animation in Flash depends largely on use of the timeline a visual interface that enables the developer to create animations frame by frame or through a process known as tweening. Flex application developers don t have the timeline available to them. In fact one of Macromedia s most important motivations in creating Flex was to free developers with a coding background from having to work with the timeline at all. But a Flex application is still distributed and viewed through Flash Player. So when it s time to move objects around the screen a Flex developer needs code-based approaches to make it happen. In this chapter I describe the use of effects to create animation in a Flex application. I also describe how to implement drag-and-drop interfaces to create an intuitive way to move data around an application. IN THIS CHAPTER Declaring effects in MXML Instantiating and playing effects with ActionScript Using tweening and masking effects Using composite effects Implementing drag-and-drop interfaces On the Web To use the sample code for this chapter import the Flex project archive from the Web site files into your Flash Builder workspace. 371 Part II Designing Flex Applications Using Effects An effect is an ActionScript class that defines changes in a visual component s position visibility scaling and

crossorigin="anonymous">
Đã 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.