Viewing By Month : November 2006 /
Main
Thursday, November 23, 2006
Looping over a CFQUERY in CFSCRIPT
In case you did not know, here's how to loop over a CFQUERY object in CFSCRIPT (the same as using cfloop to loop over it). In case the query is called bla then looping over it goes like this:
while (bla.next())
{
p = createObject("Java", "de.richinternet.utils.Person");
p.setLastname(bla.lastname);
p.setFirstname(bla.firstname);
ArrayAppend(a, p);
}
Dirk.
Friday, November 17, 2006
The web just got a bit kuler (and more colorful)
Adobe (quite silently) launched their new online color picker / color matcher tool called kuler. And it really rules :)

With kuler you can create color themes and color harmonies and store them for later reference. I'm not a designer - but this tool allows me to grab a nice set of matching colors the next time I need to build a Flex portotype that uses charting for example. Not sure if this is a Flex 2 application or not but anyway - it's kule :)
EDIT: Sean Corfield has a bit more info on the technology behind it
Dirk.
Wednesday, November 15, 2006
We're hiring!
We're are looking for qualified and smart people who want to join our Flexperten team. A full description (German only) is available here.
Dirk.
Monday, November 13, 2006
Java 5 / ActionScript 3 Syntax comparison
Tuesday, November 7, 2006
ActionScript core goes Open Source: Adobe gives AS3 to Mozilla
For a good overview on everything about the now Open Sourced AS3 Engine check JD's posts here and here. Also, for a better understanding of what this means (and what not) I'd (again) like to quote Gordon Smith (Adobe):
This is a major contribution from Adobe to the open-source community, but let me try to clarify what it is and what is isn't. The code being open-sourced is for the core AS3 language, not for anything specific to Flash. The contributed engine is able to execute a program that uses core classes of the language like Array, Date, RegExp, and XML. It is not be able to execute a program that use Flash-specific classes like Sprite, TextField, SharedObject, or URLLoader. In particular it supports no Flash graphics. Mozilla will use this engine by adding browser-DOM classes such as Window, Document, Form, Anchor, etc., which are the "domain objects" that a browser manipulates, in the same way that Flash uses this engine by adding classes for its domain objects such as Sprites. Once this is done, webapp developers will be able to use AS3/ES4 as a fast, type-checked, object-oriented "JavaScript" if they want to. So this has nothing to do with putting Flash into Firefox. Firefox users will still require the Flash plugin to run SWFs. But contributing a high-performance virtual machine for a type-checked, object-oriented language is still a big deal!
Dirk
Friday, November 3, 2006
Applying background gradients to VBox, HBox, Canvas etc.
Here's a little custom border class I created called SimpleGradientBorder which allows you to use non-solid fills with Flex 2 containers. Here's how it looks (the Container shown here is actually a Canvas):

By setting the border-skin style of a Container to the SimpleGradientBorder class, it's possible to fill Box/Canvas containers with a background gradient. This is just a basic example which only supports two fill colors and always draws a vertical gradient but it is actually pretty easy to modify this example if you need more advanced drawing routines. Note that you must set the border-style style attribute to "solid" on the Container, otherwise the background will not be drawn!
Dirk