Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sizes of datatypes for actionscript 3

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) Arrays or Vectors.

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.

like image 549
aaaidan Avatar asked Feb 18 '10 21:02

aaaidan


People also ask

What is the difference using ActionScript 2.0 and ActionScript 3.0 for controlling video?

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.

What is ActionScript variable?

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.

What is a class in ActionScript?

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.


1 Answers

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.

like image 86
Allan Avatar answered Nov 04 '22 03:11

Allan