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/
Increase Brightness / color tint of displayobject in AS3
The below code will make an object instance name 'objectMC' a bit brighter on mouse over, and back to normal on mouseOut. This uses colorTransform, see below and have a play with the values. You can also use 'redMultiplier' in tandem with 'redOffset' to create different effects, but just adding some to all 3 color... Continue Reading →