开发者

Does Import effect your file size AS3

This might be a silly a question. But I am just curious to know if the amount of classes you import into your flash class, affe开发者_开发知识库ct the size of the class, the size swf file, or the amount of memory allocated. If so, does this affect take place before or after you initiate the class. thanks


The more classes you have compiled into your SWF, the larger the size it will be on disk. For example, if you have 10 classes in your SWF, it may be 5k. But if you're using 300 classes, it may be 50k. That will affect the time of the initial download.

As you instantiate more classes, those take memory. The memory is not allocated until the class is instantiated.

Hope that helps.


If they are not used anywhere they will not be compiled, so the size of the file will not grow. You will only give more work to the compiler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜