Adobe is changing the world through digital experiences. Our creative, marketing and document solutions empower everyone — from emerging artists to global brands — to bring digital creations to life and deliver them to the right person
at the right moment for the best results.

Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change.Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.

Requirements

Prerequisite knowledge

User level

Required products

The ActionScript bytecode generated by FlasCC delivers higher performance than the bytecode generated by the ActionScript compiler. Apart from the usage of better data types and instructions, FlasCC has the advantage of using domain memory which results in faster read/write access of the memory buffer. Flash and AIR Runtimes already support the special memory opcodes needed to use domain memory. The unavailability of a toolchain (Flash Builder, Flash Pro, AIR SDK) did not make it possible to use domain memory for creating .swf files. Beginning AIR 3.6, the ActionScript compiler (ASC2) also generates fast memory opcodes directly from the AS3 code (previously available only through FlasCC).

Note: The memory intrinsic APIs are available as part of the compiler (ASC2) package. To make use of the APIs, ensure that you use Flash Builder to build your applications. The compiler package with the APIs are not available for use in IDEs other than Flash Builder.

This article discusses the avm2.intrinsics.memory package and illustrates the speed enhancement achieved by using domain memory to store byte arrays.

Using the avm2.intrinsics.memory package

To enhance the speed of your byte array operations, assign the byte array to domain memory:

ApplicationDomain.currentDomain.domainMemory = myByteArray;

The avm2.intrinsics.memory package is available as part of the compiler. This package provides instructions for storing and loading data from the byte array stored in the domain memory.