Posts tagged with class

Quick way to create an auto-increment index AS3 (2)

, under ActionScript, Code snippets.

Quick post here. I’d like to share this very quick way to create an automatic ID or index to your class instances. Mostly I pass an index as parameter to the class instances, or I use a public var to set the index. Using this way it is very easy to create an automatically filled index, since you have to set this up once and never worry again ๐Ÿ™‚

AS3 ImageSaver Class v1.0 (75)

, under 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.