Flash Builder 4 and Flex 4 Bible- P5

Flash Builder 4 and Flex 4 Bible- P5: 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 6 Debugging Flex Applications FIGURE The Console view Preferences dialog box Terminating a debugging session You should always explicitly terminate a debugging session before trying to run or debug an application again. You can terminate a debugging session in many ways Choose Run C Terminate from the Flash Builder menu. As shown in Figure click the square red Terminate button in the Console view. Click the square red Terminate button in the Debug view visible in the Flex Debugging perspective . Close the browser in which the application is running for a Web application . Close the application for a desktop application . Tip When you terminate a Web application s debugging session from within Flash Builder the browser sometimes closes automatically depending on which Web browser and operating system you re using and whether any other tabs or browser windows are open. For example provided that no other sites are open Internet Explorer and Firefox on Windows always close automatically. Firefox on the Mac doesn t always close automatically. The fact that this behavior differs from one operating system to another is not a cause for concern. 171 Part I Flex Fundamentals FIGURE The Console view s Terminate button The Terminate button Using trace and the Logging API With Flex you can generate and send logging messages to Flash Builder and other logging targets at runtime. Tracing is typically useful when you re trying to get runtime information about the following Variable values The order of application execution Whether various bits of code are being executed as expected In its simplest use logging is accomplished through use of the trace method. More advanced logging techniques are also available through an interface known as the Logging API. Using the trace function The trace function is global to Flash Player that is it s always available without your having to reference or import an ActionScript class. The purpose of the trace function is to send

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.