Đang chuẩn bị liên kết để tải về tài liệu:
O’Reilly Programming Flex 2 phần 2
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Vừa rồi Flex 4.5 sau nhiều trì hoãn mới bổ sung Spark Datagrid nhưng mấy đặc tính nhiều hứa hẹn như smooth scrolling vẫn cứ giật giật, chưa thực sự thuyết phục. Một số thuộc tính như padding bị phức tạp hóa không cần thiết trong khi chỉ cần như Flex 3 đã là quá đủ. | Using incremental builds By default when you compile from the command line mxmlc compiles a clean build every time. That means that it recompiles every source file even if it hasn t changed since you last compiled. That is because by default mxmlc doesn t have a way of knowing what has changed and what hasn t. There are times when a clean build is exactly the behavior you want from mxmlc. However in most cases you ll find that it s faster to use incremental builds. An incremental build is one in which the compiler recompiles only those elements that have changed since you last compiled. For all other elements it uses the previously compiled versions. Assuming not much has changed since the previous compile an incremental build can be much faster than a clean build. If you want to use incremental builds you need a way to determine what things have changed between builds. When you set the -incremental option to true mxmlc writes to a file in the same directory as the target file you are compiling and it shares the same name. The name of the cache file is TargetFile_ .cache in which the is a number generated by the compiler. For example the following might write to a file called SampleApplication_302345.cache where the number is determined by the compiler mxmlc -incremental true -file-specs SampleApplication.mxml Storing compiler settings in configuration files Although it is undoubtedly great fun to specify compiler options on the command line you can also store settings in configuration files. You can then specify the configuration file as a single option from the command line. The load-config option lets you specify the file you want to load to use as the configuration file mxmlc -load-config configuration.xml SampleApplication.mxml By default mxmlc uses a configuration file called flex-config.xml located in the frameworks directory of the SDK or Flex Builder installation. If you specify a value for the load-config option that can override the flex-config.xml. Many