package to import for mx:XML
I am creating an app with Flex 4 using 开发者_运维百科Flash Builder. When I try to use mx:XML
component, I get the error Could not resolve <mx:XML> to a component implementation.
Can any one tell me which package to import to resolve this error.
Try with <fx:XML
(assuming that you are using the default namespaces generated by FB). Also it should stay in <fx:Declarations>
area.
the XML class is in the top level package, so it should be included in your project by default.
The problem is probably to do with the namespace/s that are in use (i.e. the xmlns attributes of your root MXML element)
Some information and possible solutions here and here
精彩评论