NEWS:

Category Archiveactionscript



Note to self & actionscript & flex 10 Oct 2008 12:46 pm

Excellent Sample of Mate Document-Based Applications

I found an example of a Document-based Mate application out on Google code, referenced here and here on the Mate web site.

It’s pretty nice, with good examples of the LocalEventMap, etc. He’s built it using the Presentation Model design pattern which seems to be a natural fit to both Flex and Mate.

Paul Williams of Adobe has a series of articles on various design patterns including Presentation Model.

And of course Martin Fowler has some thoughts on the Presentation Model, aka Application Model pattern.

It could be a nice starting point for developing multiple document applications. And the Presentation Model pattern looks like it would provide some nice benefits, keeping the views nice and simple and making them a lot easier to test.

This project also has excellent documentation and about the only info I can find on LocalEventMaps.

actionscript & flex & ria 01 Jul 2008 09:54 am

FlexBuilder 3 Security Sandbox Explained

I’ve been trying to load a local file with some dummy data and hitting a security warning. I was running out of FlexBuilder 3 and trying to read a local file, so wasn’t sure why I was getting a security error.

I’d come across many references to adding a cross domain policy to a web server, but this is the first full explanation of the security sandbox that made sense to me. Following this, I added:

-use-network=false

To the custom compiler line in the project preferences and all is well. Here’s the link with a great explanation:

http://blogs.adobe.com/flexdoc/2008/06/the_security_sandbox_in_flex_b.html