Posts
-
Nov 28, 2008
5 CommentsAMFDateConverter – Convert PHP AMF to Flex Date Class
One of the frustrating things about AMF is that there is no mapping to the Flex Date class from PHP. Unlike converting to an ArrayCollection which utilizes the flex.messaging.io.ArrayCollection class in PHP to automatically map everything for you, there appears to be no support for Date serialization. So, a few months back, I figured out...
-
Nov 26, 2008
3 CommentsActionscript implementation of Java.util.Map
I have recently been working on a project where I have needed to place objects into an associative array and then sort the keys to ensure that all the objects are in the correct order. I accomplished this by using a keys Array where I kept all of my associative array keys and then I...
-
Oct 22, 2008
21 CommentsSolving relative DataGrid column width problems with ScalableDataGrid!
Well, since I did a post on the Nested DataGrid last week, I figured that it was time to address another frustrating issue with the DataGrid. If you try to set a percentage width on a DataGridColumn, the MXML compiler throws an error because that functionality is not built into the DataGrid or the DataGridColumn. Like...
-
Oct 11, 2008
35 CommentsNested Data Grid
If you have ever used the DataGrid before, you may have found yourself frustrated with DataGridColumn and the fact that dataField does not support nested properties (like dataField=”object.property” or...
-
Oct 01, 2008
4 CommentsEnable Remote Desktop for Vista Home Premium
Today I decided to start using Remote Desktop with my new desktop running Vista Home Premium. Unfortunately, I found out that although the Remote Desktop client is supported on all version of Vista, Remote Desktop hosting is only supported on Ultimate and Business versions of Vista. Bummer! Just when I thought I was out of luck,...
-
Sep 30, 2008
22 CommentsPreventing the TabNavigator from changing tabs when one is clicked.
I recently came across an interesting problem at work with a TabNavigator. The problem we had is that when a user clicked on a tab, we needed to validate some data on the client-side. If the data was valid, then the TabNavigator could proceed with changing tabs. Otherwise, if the data was invalid, an Alert...
-
Sep 22, 2008
No CommentsJFugue rocks!
I am currently involved in a project that involves a digital USB keyboard and obtaining user input from that keyboard. Our requirements were that we needed to be able to capture the keyboard’s input and package it into MusicXML type format for display. I can’t go into too many details about the project, but suffice...
-
Sep 20, 2008
4 CommentsFlex’s Data Transfer Pattern (Class Adapters)
We have been having several discussions at MediaRAIN recently about how we should handle data adaptation from the back-end to the Flex front-end. In most cases, our back-end devs are using CakePHP which bases the object model off of the database schema. In many of our projects, we found the Flex front-end guys going back...
-
Jul 30, 2008
9 CommentsCustom Component Implementation
createChildren() When is it called? The createChildren() method is automatically called by Flex whenever the custom component is added to a parent by the call addChild(customComponent). Keep in mind that unlike the other overridden methods in this article, there is no invalidate method associated with it. What is its purpose? To add other child components that the custom component...
-
Jul 30, 2008
1 CommentReverse Mask
In Flex, masking is an easy thing to do. All you need to do is set a display object’s mask property to another display object and you have a mask. However, doing a reverse mask is a bit trickier. A reverse mask is simply the opposite of a mask. If I have an red canvas and I want...