Adding Apache mods using the console on Debian

We needed to enable rewrite.load (the mod_rewrite) module for Apache to enable Clean URLs in drupal which is turn enabled imagecache to work correctly. Found this great wee piece of code to do so $cd /etc/apache2/mods-enabled $ sudo ln -s ../mods-available/mime_magic.conf mime_magic.conf $sudo ln -s ../mods-available/mime_magic.load mime_magic.load Note: If you have full access to the... Continue Reading →

Returning all the objects in a clip in AS3

Found this great wee piece of code that'll let you return all the items in a movieclip. var target_mc:MovieClip = this; for (var i:uint = 0; i < target_mc.numChildren; i++){ trace ('\t|\t ' +i+'.\t name:' + target_mc.getChildAt(i).name + '\t type:' + typeof (target_mc.getChildAt(i))+ '\t' + target_mc.getChildAt(i)); } Source: http://www.matthijskamstra.nl/blog/index.php/2008/04/30/as2-to-as3-get-all-objects-in-a-movieclip/

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑