Category Archives: Flex

360Flex Road Trip Begins

For the 4th year in a row Betsy Weber, TechSmith’s Chief Evangelist, and I are on a spring road trip to visit the Flash community. I picked up a Flip Mino HD a couple of weeks back which means a real stab at some seriously rich lifestreaming…

The journey begins:

Get Adobe Flash player

Download video.

Fast forward to our arrival in Indianapolis 4 hours later and I got a quick chance to ask Betsy and Nick why we were there:

Get Adobe Flash player

Download video.

The keynote is at 8:30 AM (just over 5 hours from now as I type). I’ll update as possible.

Bilinear Resampling, ShaderJob, Pixel Bender And Flash Player

*Update*

Sometimes you’re an idiot and you spend a lot of time reinventing the wheel because you misread one little line of documentation. This is one of those times where I get to be that idiot. I invented a solution for bilinear resampling in Flash Player when I didn’t need to. You can actually get the same results pretty simply using just BitmapData.draw() method with smoothing on (I had read this didn’t work when down sizing), but it requires creating a temp BitmapData object if the source you’re feeding the BitmapData.draw() method is not another BitmapData object (i.e. a DisplayObject). Here’s what that scenario would look like.

            // source in this example is a DisplayObject
            var temp:BitmapData = new BitmapData( sourceWidth, sourceHeight );
            temp.draw( source );
 
            var output:BitmapData = new BitmapData( outputWidth, outputHeight );
 
            var matrix:Matrix = new Matrix();
            matrix.scale( outputWidth / sourceWidth, outputHeight / sourceHeight );
 
            output.draw( temp, matrix, null, null, null, true );
            temp.dispose();


Continue reading