Psyked *
it’s easy once you know how.Link: disturb media
Posted by James - 17/09/09 at 11:09:18 amAnother cool website to check out – disturb media. Stunning use of imagery, quirky navigation and neuvo-marketing speil, nice finishing touches all around make this one inspirational website. Just make sure you stick around long enough for the background images to do their snazzy cross-fades.
Link: Cool Actionscript 3 ‘Genie’ effect
Posted by James - 17/09/09 at 09:09:19 amThis is an awesome link that Mark sent around the other day – a cool Mac-esque ‘Genie’ effect.
That effect is all very cool, but even more surprising is that it seems to be an Actionscripted effect, rather than a Pixel Bender effect. You can find the blog post from the guy that created this here, and even better can find a live online example here.
- http://fladdict.net/exp/ginnyeffect/
- http://blog.jactionscripters.com/2009/09/09/genie-effect-with-as3/
- http://wonderfl.net/code/b8ec2e7155357ddc65d21eb8b1fa2e94c8363cfc
Flash introduces DRM to its online video
Posted by James - 16/09/09 at 12:09:43 pm
The Flash Player is due to get built-in DRM, sometime soon. Actually it seems odd that it’s not already in there, but perhaps this means a little more flexibility in Flash video is on the way. My initial thoughts on hearing about DRM are slightly coloured by the whole issue with music and DRM, but thinking about it, maybe if the Flash Player can handle the DRM itself, we can stop having to stream everything all the bloody time!
Here’s a couple of links, which talk about this announcement in a little more detail;
Link: Using Deferred instantiation in Flex
Posted by James - 16/09/09 at 09:09:01 amHere’s a useful example – showing how you can implement deferred instantiation in Flex, but with Actionscript instead of mxml.
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=15826
Rotating BitmapData with Actionscript 3
Posted by James - 15/09/09 at 10:09:07 pmHere’s a little snippet – rotating BitmapData (through 90 degrees) with Actionscript 3.
var matrix:Matrix = new Matrix(); matrix.translate(-bmd.width / 2, -bmd.height / 2); matrix.rotate(90 * (Math.PI / 180)); matrix.translate(bmd.height / 2, bmd.width / 2); var matriximage:BitmapData = new BitmapData(bmd.height, bmd.width, false, 0x00000000); matriximage.draw(bmd, matrix);
The code above can rotate an images BitmapData, using a Matrix to transform the image when you draw the data. It’s only really designed to rotate the image in 90 degree increments though – so be aware of that.
How it actually works is to create a new Matrix object, offset the source BitmapData’s width and height (so the rotation goes from the center of the bitmap), rotate the BitmapData, move the BitmapData again (to undo the previous offset), create a new BitmapData object to draw the rotated BitmapData into, and finally draw the source BitmapData with our newly created Matrix.
Simple.





