Zend_Amf in Zend Framework 1.7.0 Preview Release

Sweet. The Zend_Amf component is out now in the Zend Framework 1.7.0 Preview Release. Thanks Wade!

A useful looking resource here: http://diamondtearz.org/blog/zend_amf-collection/

Posted in Uncategorized | Leave a comment

Pyro Framework – A lightweight Flex Alternative

Just came accross this post in my feeds:

http://www.arpitonline.com/blog/?p=147

Looks promising. Interested to see how it progresses. Check out the project page here:

http://code.cimians.com/redmine/projects/show/pyro

Posted in Uncategorized | Leave a comment

Got Me Some Flex Builder 3

I bought my own copy of Flex Builder 3 this morning.. Stoked! Running it as a Ganymede plugin. So far so good. Wish it had code generation (for getters and setters at least) and templates, but I’m sure they’ll be integrated one of these fine days.

Posted in Uncategorized | Leave a comment

Zend_Amf is moving along!

It’s great to see Zend_Amf moving along swiftly! Keep tabs on it by subscribing to Wade Arnold’s blog, or visiting:

http://wadearnold.com/blog/?cat=10

Posted in Uncategorized | Leave a comment

Pijin.net V3 Progress Update – 14 Sept 2008

Thought it was about time to post some updates.
Continue reading

Posted in Uncategorized | Leave a comment

Pijin.net V3 – What’s Taking So Long? Or, Markers On The Road To Pijin V3

The first version of Pijin.net was built in a week.
The second version took over 6 months.
The third has taken 2 and half years so far.. and counting!

Here’s why:

Continue reading

Posted in Uncategorized | Leave a comment

The 25-Line ActionScript Contest

Keith Peters just announced a new competition he is planning. Rad. Should be fun.

Check out: http://www.25lines.com/

Posted in Uncategorized | Leave a comment

Image Resizing and Cropping Utility – AS3 Demo

Just a little follow up to yesterday’s post.

Kyle was kind enough to put together a little demo for the Display Utility and send it my way. I tweeked it to reduce the filesize a bit. Herewith, the demo, source and all:

displayutildemo.zip

Disclaimer: My Mac has probably thrown some .DS_Store files into the zip file. If you are a Windows user.. “suck it!” No, I’m just kidding. The best solution is to switch to OS X as soon as you can: I promise you won’t regret it. Until you try to copy and merge two folders – at which point you will be amazed when your original folder gets wiped. Awesome! Apple, why oh why oh why? The best OS on the planet, with one of the biggest flaws imaginable!

Posted in Uncategorized | Leave a comment

Image Resizing and Cropping Utility – AS3

UPDATE: Aha, here we go, this looks much better: Fit Display Object Into Rectange
UPDATE: Or check out CASA lib: http://casalib.org/

A day or two ago my man Kyle asked me if I knew of any good ActionScript image resizing utilities. I said “nay”, did a quick (and unsuccessful) search, and promptly forgot about it. This morning, however, I had to write some PHP to scale and crop images to fit inside fixed rectangles (for desktop downloads) and I remembered that I’d written something to do that very thing many years ago. I found my old code, tweaked it, and rolled it out.

This evening I decided to write an AS3 version – I’ll need it soon enough anyhow. Herewith, my Display Utility containing two static methods: resize(), and resizeAndCrop().

DisplayUtil.resize() will scale a DisplayObject to a target size, with an optional fourth parameter to determine whether the image should fit “inside” (default) or “outside” the target size. For example:

var fitInside:Boolean = false;
DisplayUtil.resize( pic, 400, 300, fitInside );

DisplayUtil.resizeAndCrop() will scale a DisplayObject to fit “outside” a target size and then crop off the excess (by setting a scrollRect on the DisplayObject). The optional fourth and fifth parameters determine how to align the crop (the area to keep – defaults to center, middle). For example:

var ha:String = DisplayUtil.ALIGN_RIGHT;
var va:String = DisplayUtil.ALIGN_BOTTOM;
DisplayUtil.resizeAndCrop( pic, 400, 300, ha, va );

Download:

displayutil.zip

Disclaimer: I’m absolutely sure that someone has already written something to do this, but I couldn’t find anything easily (quickly) enough, and it was fun to write.

UPDATE: Aha, here we go, this looks much better: http://blog.soulwire.co.uk/flash/actionscript-3/fit-a-displayobject-into-a-rectangle/
UPDATE: Or check out CASA lib: http://casalib.org/

Posted in Uncategorized | Leave a comment

Zend_Amf Oh yes!

This is really great news: Adobe to contribute AMF support to Zend Framework.

You can check out the official proposal here:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf

In fact, it solves two of my three big choices from this post.

Posted in Uncategorized | Leave a comment