Subscribe via feed.
Posts under ActionScript

Garbage Collector troubles using the Loader class

Posted by admin under ActionScript (2 Responds)

Just great another weird Garbage Collector issue in AS3: When I load an image using the Loader class and unload it later on. It won’t be disposed by the garbage collector. There are no references to neither the Loader nor the (weak) eventlisteners. After loading the image a couple of times the memory goes sky [...]

Code speed-up tips!

Posted by admin under ActionScript (Comments Off)

Isn’t it just great when you find some simple tricks to speed up your code? Here are some… Al examples below are based on the fact that calling a method is way slower than just calculating the answer on the fly. Here are some fast ways to replace common Math methods. In most cases this [...]

Use “this”…

Posted by admin under ActionScript (1 Respond)

Because “this” is just great! Unfortunately many people omit them in their code  . Not sure why though, but my guess is that they are ignorant or just lazy (don’t be offended if you don’t use the this keyword for another reason, but please let me know why). Even Adobe (and Macromedia before them) neglects the this keyword. None [...]