Archive for April, 2007

Scorpio Pre-release User Group Tour

Even before the release of the highly successful ColdFusion MX 7 two years ago, the ColdFusion team was already hard at work scheming, experimenting, planning, building, creating … and the result is “Scorpio”, the highly anticipated 8th major ColdFusion edition. Building on top of the powerful platform introduced in ColdFusion MX, and the solid feature set of ColdFusion MX 7, “Scorpio” piles on new features and technologies for developers, administrators, technical decision makers, and more. The official “Scorpio” release is scheduled for mid-2007, but you don’t have to wait until then to see it for yourself. Ben Forta and several other members of the CF team will be demoing lots of Scorpio throughout an extended user group tour in the spring, where attendees will get to see “Scorpio” in action, as well as gain access to the pre-release beta, and get the chance to win Adobe software.

To check if the Scorpio pre-release tour is coming to an Adobe user group near you, please check the comprehensive listing of events at: http://www.adobe.com/products/coldfusion/events/.

Serializing enums in FDS

Java 5.0 introduced typesafe enums which are a special type of class. enums in other languages are typically just an ordered set of properties, however, Java enums allow custom behaviors and logic to be added through constructors, fields and methods.

FDS is based on JDK 1.4.2 and does not natively support enums. ActionScript 3 does not have the concept of enums either. To FDS, an enum class definition looks like a normal class. As such, only public fields and public bean methods with get/set accessors are seen as properties.

An enum can be written to capture the selected value by making the class look like a normal value Object.


package food;

public enum FruitEnum
{
    APPLE("apple"),
    ORANGE("orange"),
    BANANA("banana");

    FruitEnum(String value)
    {
        this.value = value;
    }

    public String value;
}

While this doesn’t provide round trip support for enums, it does allow Java to ActionScript conversions of enums.