Posts about ActionScript

Make things less static, add some movement with Perlin Noise

ActionScript

Perlin noise? What is that? Well, if you are using PhotoShop, you should know the ‘clouds’-effect. That is Perlin noise. You could used it with Actionscript too.
[kml_flashembed movie=”http://projects.stroep.nl/perlinTest/example0.swf” height=”180″ width=”420″ scalemode=”showall” /]

We should use Perlin noise more as random factor, but what could we do with Perlin noise?

Read more

Saving images with AIR –
Create a wallpaper using AS3 only

ActionScript, Generative art

I’m experimenting with AIR, because I heard saving a ByteArray ( for example encoded PNG or JPG ) should be quite simple. You don’t need PHP or another serverside script for this, just write directly on you disk. Well, just check it out.

I created an example of how to get it work. The image will be save in the same directory as your AIR application.

Cool wallpaper created with AS3
Click the read-more button to find out how to create a cool AS3 wallpaper.

Read more

AS3 ImageSaver Class updated

ActionScript

The ImageSaver Class is updated.

Download
» ImageSaver (latest)

Fixed:
– You can use a bitmapdata as input too. First you only could use a displayObject, but I believe it’s better to use an IBitmapDrawable (interface).
– Bug quality JPG
– Added optional rect

Read more

AS3 ImageSaver Class v1.0

ActionScript

ImageSaver ClassMy ImageSaver() Class is ready for download.

Download
» ImageSaver v1.0

Features

  • Save a MovieClip, Sprite, Shape, Bitmap, Textfield or other kinds of displayObjects.
  • It doesn’t matter where or how your object is positioned on the stage, it gets the right bounds.
  • Never worry about bytearray’s / encoding anymore.
  • Save your displayobject as JPG or PNG (using Adobe’s encoders)
  • Ready-to-install PHP file.
Read more