New Prefixes for Flex 4 Components
As a couple people have noticed, the nightlies of Flex 4 include some changes to the component names. Instead of <Button> we’ve now got <FxButton>. I asked Matt what was up and he gave me some info. If you’ve been looking at the Flex 4 stuff at all you know that what we’ve done is create new “Gumbonents” that have the same name as old components. Up until now we’ve been relying on different packages to keep them clear. So you used to see <mx:Button> and <Button> side by side and those belonged to different packages. With Flex 4 you can interchange the new “Gumbonents” and the old Halo components so we needed to support both models. It became pretty clear that packages alone weren’t going to cut it.
There are a couple of benefits to using prefixes over just packages. One is the ability to merge Halo and Gumbo components into one namespace, the 2009 namespace. This makes it easier to upgrade as we create new Gumbo components or update Halo components. It also means we don’t need to add namespace support for CSS which should save a lot of headaches.
In general this should make everything a lot easier. Tooling/code completion will make more sense, upgrading will be easier, and transitioning over to the Gumbonents will be easier as well. It may take some getting used to writing <FxApplication> instead of <mx:Application> but in the long run I think it makes more sense.
Posted in Flex








October 9th, 2008 at 11:58 am
Provided the developer actually has a requirement to use Flex 3 components.
The quicker I can detach from the Flex 3 architecture the happier a developer I will be : )
October 9th, 2008 at 12:20 pm
Hi Ryan,
one question for you… so we’ll must migrate our RIA or desktop software made with Flex to new prefix component or in Gumbo Flex 3 components may be used with new Gumbonents?
see you soon
October 9th, 2008 at 12:33 pm
Nope, you don’t really have to change anything. Flex 3 components will work just fine inside a Flex 4 application. You can kind of pick and choose which Flex 4 components you want to use.
=Ryan
ryan@adobe.com
October 9th, 2008 at 12:41 pm
So I will have to type at least 3 characters before I start getting any meaningful intellisense??
October 9th, 2008 at 1:05 pm
@Laura,
In the version of Flex Builder 4 that I’ve been using, just typing “B” gives me a list of possible buttons. So no, you shouldn’t have to type 3 characters to get meaningful code completion.
=Ryan
ryan@adobe.com