Building Blocks you should not target low coupling, instead target appropriate coupling – Mike Labriola (@mlabriola)

9Feb/0816

VEsession – Flex photography studio management and client ordering application

My wife saw the application that I am working on at work to manage tasks and immediately asked, "Where's mine?"

21st century honey-do list.

So far, this is what I have created. PureMVC is the underlying framework. The photos are loaded from SlideShowPro Director XML galleries. Unforutately, the most recent version of SSP-D won't let you use it as a service in this way. This older version is has all the functionality I need though, so it isn't an issue. Eventually I will implement functionality to eliminate the need for SSP-D with some gallery management. It will be better to keep it all under one roof.

The backend is Django using pyAMF for communications back and forth. Django elminates the pain of CRUD operations and provides an excellent admin interface for free.

My goal is to open source the application and provide it as a PureMVC/Django example.

UPDATED: This version is a little jacked because I am working on a new version. The demo images are way too big and cause the application to scroll in unsightly ways. The new demo is located here, and uses the same credentials as below.

[Here is the demo]
user: demo_client
pass:demo_client

session_sshot.jpg

[source]

Do to some, uh, laziness on my part, this will only compile with strict mode turned off The new version does not have this problem.

9Feb/080

CForm – Programmatically generated forms for FLEX.

The application I am currently working on is riddled with forms. There is a task that I discovered a deep rooted hatred for. Laying out forms. CForm stabs this tedious task straight in the heart, allowing you to create forms on the fly using XML schema. The XML describes the form and the underlying data entry widgets. The resulting forms are easily validated providing an excellent alternative to hours of mind numbing labor.

Thanks Uday!

cform_srcshot.jpg

Filed under: actionscript No Comments
9Feb/080

Regular Expression resources and utilities.

Regular expressions are like alien gibberish to me. It is easy to understand the concept of regex and see why it is a useful to syntax to comprehend. Fully understanding how and why they work is another story. I'm working on getting on top of that learning curve. Here are a few resources that I am finding useful in this climb.

There are a lot of tools out there for evaluating regular expressions. For windows I think Expresso is a good choice. It has a 30 minute interactive tutorial and is free to download and use. It is .NET regex, but the features are close enough to E4X to be useful.

I Love Jack Daniels has MANY excellent cheat sheets, including this one for regular expressions.

regex cheat sheet

There are a number of flavors of regular expressions. They are fundamentally similar, but it is good to know how they differ.

Filed under: regex No Comments
7Feb/0818

Flex – Preventing DataGrid scrolling when the dataprovider is updated.

I was having issues with my DataGrid scrolling to the top when my grid updated from the server. It is very aggravating as a user when you are milling about and *BAM* it scrolls away.

This worked:

1
2
3
4
5
6
var storeItemForUpdate:ItemVO = grid.selectedItem;;
var vScroll:int = grid.verticalScrollPosition;
arrayCollection.source = updatedDataArray
grid.validateNow();
grid.verticalScrollPosition = vScroll;
grid.selectedItem = storeItemForUpdate;

The current selection is stored, the scroll position is stored, the grid is updated, validated, and then the stored variables are applied without so much as a flicker on the screen for the user. Much better.

Filed under: actionscript, flex 18 Comments