Anyone know any good resources or personal experience that help explain how much memory (and swf size) the various built-in data types take up in actionscript 3? I'm specifically interested in int
, Number
, and (dense) Array
s or Vector
s.
I'm working on a project where I need to embed large amounts of structured array data, which is already in C++ format, so porting is just a matter of copy-paste, search-replace.
I've already had a look at Adobe's lowdown on datatypes but it's not specific enough, and doesn't mention Arrays, etc.
Practical differences between ActionScript 2.0 and ActionScript 3.0. Hence, ActionScript 3 is carrying nearly more than 5 times classes and 4 times packages than ActionScript 2. ActionScript 2.0 was launched with 66 classes and 10 packages, while ActionScript 3 has more than 500 classes with 42 packages.
In ActionScript 3.0, variables are always assigned the scope of the function or class in which they are declared. A global variable is a variable that you define outside of any function or class definition. For example, the following code creates a global variable strGlobal by declaring it outside of any function.
Classes are external ActionScript files that define objects; they are stored and organized in a specific directory structure in the Flash CS3 program directory (Figure 4.1). To use them in your code, you have to import them.
This SWF spec sheet may be what you are after http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf specifically Chapter 5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With