Currently browsing tag

actionscript

center-slide-screen

Center Slide Effect

This effect can be used as a transition effect or to animate the showing or hiding of a display object. The effect works by exposing / hiding the display object from the center line. The center line can be either the horizontal or vertical centre. The original idea came when …

recolour-image

Code Snippet: Recolour an Image

This method will recolour an image to a new colour. However, it does give a washed out look to the image IMO. package net.avdw.image { import flash.display.BitmapData; import flash.filters.ColorMatrixFilter; import flash.geom.Point; import flash.geom.Rectangle; import net.avdw.color.extractARGB; /** * Makes a bitmap data object the color provided. * * @param destBitmapData The …

sepia-image

Code Snippet: Make a Image Sepia

The below code will convert an image to sepia. package net.avdw.image { import flash.display.BitmapData; import flash.filters.ColorMatrixFilter; import flash.geom.Point; import flash.geom.Rectangle; /** * Makes a bitmap data object sepia. * * @param destBitmapData The destination bitmap data object. * @param sourceBitmapData The source bitmap data where the pixel data is retrieved. …