Posts Tagged 'actionscript'

Sparklines in Flex

My last project was to build a dashboard where the main goal was to prove that it was possible to build Decision Support System using sparklines as the main data visualization component.
So I went searching for sparkline implementations and I found it on several programming languages such as PHP, Ruby and even Here is what I consider a good implementation in PHP. Nonetheless, I had to build then using Flex 2 or Flash 9, so I went Flex 2 + Flex Charting API.
Just before getting in more details about the implementation there are a few issues that must be kept in mind when building Sparklines:
Continue reading ‘Sparklines in Flex’


Type Casting and ObjectUtil.copy(obj) in ActionScript 3.0

When programming in Object Oriented Languages, in this case ActionScript 3.0, having different copies of the same object is sometimes a common need.
For many, the most obvious approach would be to simply assign one object to another, like this:

myObj2 = myObj1;

But this approach would not copy the objects. Instead this approach would only copy the object references. In the end there will be only one object, which would be referenced from two places, meaning that changing myObj1 is the same as changing myObj2 and vice-versa.
By the way, in Flex everything is a reference!

The question is how do we clone an object in ActionScript 3.0?

Continue reading ‘Type Casting and ObjectUtil.copy(obj) in ActionScript 3.0’

Flex or Ajax? Or both?

[Edited on April 10, 2008]

Two weeks ago (counting from this post date), while talking to a colleague, I found myself trying to find out reasons to say that Flex easily outcomes Ajax. The truth is that it’s much easier for me to talk about Flex than Ajax, in fact, I’ve been programming on Flex 2 for the last 9 to 10 months.
Still, I claim my self has being technology agnostic… So I went searching about Ajax and how it is related to Flex. And the main conclusion is that both of them aim at something… the Web 2.0. How they do it it’s a different story.
Ajax its a set of technologies that allows the incremental update of website pages without having to refresh the whole page every time the user makes a request. If you’ve read my Web 2.0 post, this is how Ajax makes websites more responsive. Still, if users want rich GUI they will have to rely on JavaScript (which in fact can be very tedious!).
Flex, on the other hand, is a presentation tier and server which allows the development of Desktop-Like web applications. In fact, Flex developers claim that they don’t develop websites but yes web applications. And this is easily proved because websites are a sequence of pages (static or dynamic) while Flex applications only (this only is more like everything) reflect the values of each variable in every state… and that’s what Flex applications are.. a sequence of states!

Lets then compare Flex and Ajax… Continue reading ‘Flex or Ajax? Or both?’

What’z Hot