I didn't really expect to write a second part to this, but I wanted to dynamically call functions instead of doing what I usually do which is something like this:
Writing a general console for game and application development is almost always an important first step in my experience, so I figured I'd write one I could reuse often. However, I also like using goofy fonts (like pixel fonts, where the default system caret just doesn't look right.
Fairly simple method to select the entire contents of a textfield when it's focused. This is useful for form entries and terminals where the user may want to erase content currently in a textfield.
Occasionally you want to make an application or game that responds to its window being resized. This can be useful in a desktop environment (resizing the window) or in a browser (resizing the browser the swf is in).
Check it out! You can blur images dynamically using only Actionscript. This can be useful for pause screens or image gallery interfaces (to name just two of the uses). It's surprisingly easy to do. Tutorial follows. Download the source at the bottom.
I've been working on a little app that lets me download large files from my Dropbox account using Adobe Air. Essentially, I needed a way to download 700+ MB files without them going entirely into memory first (I want this app to run on any device). So that rules out URLLoader.
Basically, I needed a way of progressively downloading the file, and offloading it onto the hard disk to clear up memory for the next bytes of the download.
For an application, I have code that closes the current window and creates a new window. How do I replace the current window with the new one and migrate what's in the old window to the new one?
Well, you can actually re-parent your document class as easily as any other display object. So to move it from one window to another you can do the following (where "this" is the reference to your document class).
Short post today, but it's really easy to get an Object's class in AS3, for purposes like checking what the user has clicked or what object type a character has run into (though I'd probably have a variable in the Object for the second case indicating what material it is).
I've added this static method to my Util class, so I can access it anywhere by typing Util.getClass(obj);
Something easy that everyone should be able to do, pure AS3 (no Flash IDE or timeline objects) - tracking the frames per second and memory of a current project! Here's how: