Tag Archives: Flash

AS3: QuickHint: Convert BitmapData to ByteArray

While writing my next post, about Facebook and Flash development, I noticed that there is something in my post drafts that I haven’t published yet, so I changed it a bit and here you go. On one of my last posts taking a screenshot with AS3 I’ve explained how to create a snapshot by using [...]

AS3: Drawing dynamic anchor lines

Based on this post on the Adobe’s AS3 forum, I thought  I would create a simple class that takes care of the requested task. The whole idea is basically to draw a line dynamically between 2 displayobjects, on top of it when one object is being dragged the line is redrawn along based on the [...]

AS3: Take a screenshot of any Displayobject

Ok you want to take a snapshot of a movieclip, sprite, displayobject, shape or just simply the whole stage? That is a simple task to accomplish in AS3. Below a reusable function I wrote while working for one of our clients: private function getBitmapData( target:DisplayObject ) : BitmapData { if ( bd ) { bd [...]

SWFObject & SWFAddress – compatibility

Who doesn’t know SWFObject & SWFAddress? These two JavaScript buddies are the best a serious Flash Developer can have. SWFObject embeds your Flash nicely and browser independent, it has gone a long way and now it’s even the default publishing method in Flash Builder and Flash Catalyst (not sure about Flash CS5 ), you can [...]

Must have: SWFFit

During the last project I worked on for ChocolatFrey I had a small problem that was bugging me. with the help of our inhouse stagemanager class where you can define minimum width & height of the stage the flash website always looked good, but as sson as the screen was smaller then the minimum defined [...]