ActionScript 3: Overloading constructors with …(rest)

October 16th, 2006 by Victor Rasputnis

ActionScript 3 allows a function to have a variable number of arguments by using so-called … (rest) parameter. Ellipses followed by the name represent an array parameter that can contain any number of comma-delimited arguments: public static function calcTax(… taxParams):Number{… continue reading

Passing parameters to Flex with flashVars that works

October 12th, 2006 by Yakov Fain

Today’s assignment is to be able to run a Flex application against different servers (dev, uat, prod) without the need to recompile SWF. It does not take a rocket scientist to figure out that the URL of the server should… continue reading

A coding challenge

October 9th, 2006 by Yakov Fain

Just finished writing an article called “Polymorphism Without Interfaces”. I challenge you to review and explain the code below: for(var i:uint = 0; i < workers.length; i++) { var p:* = workers[i][“increasePay”]; output.text+=p==undefined?”no luck”:p(5); } The person who writes the... continue reading

Fun with ItemRenderers

October 4th, 2006 by Anatole Tartakovsky

I picked up a growing concern in flexcoders forum messages related to the need of itemRenderers use to do simple things – like changing the color of the field in DataGrid depending on the column value or things like that. Using the terminology from… continue reading

ActionScript 3: Dynamic Classes

October 2nd, 2006 by Yakov Fain

In Java, if you’ve created an object from a particular class, you can use only properties and methods that were defined in this class. For example, if the following class: class Person { String name; } you can only manipulate… continue reading

Program in Style or an Elevator Pitch

October 2nd, 2006 by Yakov Fain

Your old programming habits influence the style of your programming in any new language you learn. Let me illustrate my point using Flex. We usually run Flex training for private clients of Farata Systems , but once in a while… continue reading

Web 2.0 is dead … Long live Desktop 2.0

October 2nd, 2006 by Anatole Tartakovsky

Well, not quite, but (hopefully) we are getting  closer. I have been following closely on the progress of Apollo and whatever news I could find on inroads it makes in different types of applications. It seems that more people who are lucky… continue reading

Overlay in List/Tree controls

October 1st, 2006 by Anatole Tartakovsky

One piece of this week’s code seemed to be “typical” for UI in List/Tree control – overlay element that needs to be shown on the selected row(s) Here is the used approach: 1. Inherit new control from the  Tree or… continue reading