Monthly Archives: December 2006

Flex loop over form values (mx:Form, mx:FormItems)

I’ve been messing around with the FlexOnRails Cairngorm/WebORB app and wanted to add some more fields to the flex form for projects (I’m building a construction project tracker so I need to add the project’s address). However as I’m a lazy programmer I quickly got tired of typing all the values to be passed in [...]

Posted in ActionScript, Flex | 3 Comments

Flex & Cairngorn & Rails Demo App

FlexOnRails have two (first, second) detailed posts on using WebORB for Rails with Flex. The demo app uses Adobe’s Cairngorm a framework for Flex and it’s Value Objects which can be mapped (through WebORB) to server side objects. Make sure to read the comments on the second post as Derek Wischusen explains the value of [...]

Posted in ActionScript, Flex, Ruby on Rails | Leave a comment

Flash image upload security with Ruby on Rails

When uploading a file through Flash every file comes through as with it’s .content_type as ‘application/octet-stream’ so you can’t check it using traditional methods*.
You can limit what kind of file is uploaded in ActionScript:
var allTypes:Array = new Array();
var imageTypes:Object = new Object();
[...]

Posted in ActionScript, Ruby on Rails | 2 Comments