rss twitter

Posts Tagged ‘flash’

Alpha / Soft Masks in Actionscript

We're all used to the fact that the Flash IDE doesn't support soft masks for any reason. Everyone needing soft / alpha gradient masks must use Actionscript to realize that. Just add a PNG (you want to use as map) with transparency to your library (or load it), export it for Actionscript (in our case it's MaskPNG) and then use the following code (mcToBeMasked is already on stage). What's essential is the cacheAsBitmap - property which will dither the png with transparency:

Actionscript:
  1. var png:MaskPNG = new MaskPNG(200, 200);
  2. var maskBitmap = new Bitmap(png, PixelSnapping.AUTO);
  3. maskBitmap.cacheAsBitmap = true;
  4. addChild(maskBitmap);
  5.  
  6. mcToBeMasked.cacheAsBitmap = true;
  7. mcToBeMasked.mask = maskBitmap;

Compile AIR Projects with FDT

An updated and extended version for FDT 4 and AIR 2 has been released!
AIR2 AND FDT4 (M3) – A DETAILED WALKTHROUGH

Original Post:
Admitting that I was surprised pleasantly that even the official Powerflasher-Blog published an article about compiling AIR projects in FDT 3 I recently started to take the challenge and began with the first steps. Read more »

F*CSS – Finally parsing CSS the right way

TheFlashBum: if you need text you need F*CSS.

Again just a quick post to mention Jesse Freeman's revolutionary CSS-Parsing library. This one allows you to easily access CSS styles from an external .css file in a handy, feeling right way. On the official page he provides a pretty easy-to-use example and of course the library itself. It takes you five minutes to read & understand and will save you probably hours of work in the future.

There you go: F*CSS's official page

FDT – Sandbox Security Violation in OS X

Just found out, that this exception:

Only local-with-filesystem and trusted local SWF files
may access local resources

(which might occur when trying to load a local css-file within a FDT-build) can easily be fixed by passing the use-network param. For sure set the value to true :)

FPS, MS and MEM-Stats

Mr.Doob's open source class "Hi-ReS! Stats" allows you to easily get these information with only one single-lined code. An awesome class I just wanted to pay tribute to. :)

Official Site: Hi-ReS! Stats (Actionscript 3 / Javascript / haXe)

Thanks!

Flash Preloaders in Highspeed-Ages

Preloading, Connecting to Server, Timeouts.. There might be some who still remember this and yes, there even might be some still preferring this to HQ-Youtube and Livestreams. Those should take a closer look at this plugin: Firefox Throttle. Read more »

Mousewheel with transparent WMODE

When you'll use the transparent WMODE in firefox while embedding flashmovies, the mousewheel ain't triggering in flash anymore. This is a short workaround showing how you'll still be able to use it anyway.
Read more »

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs