Gumbo Skin mxml with Flex Builder 3 namespace error

Posted on August 5, 2008 | 2 comments

I am using Flex Builder 3 to build Gumbo (Flex 4) application targeted for Flash Player 10. I came across this situation in the Gumbo skin file where I wanted to put a mx.controls.Image control into the skin. When trying to add both “http://ns.adobe.com/mxml/2009″ and “http://www.adobe.com/2006/mxml” namespaces I get the following error.

Only one language namespace must be specified per document. Found ‘http://ns.adobe.com/mxml/2009′ and ‘http://www.adobe.com/2006/mxml’.

To get around this you need to declare the specific package as the namespace. Like this:

xmlns:controls=”mx.controls.*”

NOTE: There is more in depth information on this namespace issues in MXML 2009 spec under “Namespaces and Component Disambiguation”.

  • http://blog.smartlogicsolutions.com Gregory Jastrab

    I just finished getting through the MXML 2009 Spec, and haven’t tested it yet, but I believe you could also do xmlns:mx=”library:adobe/flex/halo”.

  • http://www.renaun.com Renaun Erickson

    You are correct, too much to keep track of.