Flex basics:
Use of Name space in mxml :
1. To specify language version
2. To provide scope for mapping XML tag name to ActionScipt class name or CSS style tag to ActionScript class name
3. And provide details to compiler, where local sources located for custom component.
Name space :
1. Flex 2 and 3 -> MXML 2006 which contains language version and mapping for flex framework component
2. In Gumbo, new language features are added and updated to MXML 2009 [ xmlns:fx="http://ns.adobe.com/mxml/2009" ]
3. Components are described in their own namespaces,
-> Flex 3 or MX components are in mxml library namespace. [ xmlns:mx="library://ns.adobe.com/flex/mx" ]
-> New Gumbo spark components are in spark component name space. [ xmlns:s="library://ns.adobe.com/flex/spark" ]
For flex 3,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://ns.adobe.com/mxml/2006">
For flex 4, Gumbo spark component,
<?xml verison="1.0" encoding="utf-8"?>
<s:Applicaiton xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
- will continue in next post..
Use of Name space in mxml :
1. To specify language version
2. To provide scope for mapping XML tag name to ActionScipt class name or CSS style tag to ActionScript class name
3. And provide details to compiler, where local sources located for custom component.
Name space :
1. Flex 2 and 3 -> MXML 2006 which contains language version and mapping for flex framework component
2. In Gumbo, new language features are added and updated to MXML 2009 [ xmlns:fx="http://ns.adobe.com/mxml/2009" ]
3. Components are described in their own namespaces,
-> Flex 3 or MX components are in mxml library namespace. [ xmlns:mx="library://ns.adobe.com/flex/mx" ]
-> New Gumbo spark components are in spark component name space. [ xmlns:s="library://ns.adobe.com/flex/spark" ]
For flex 3,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://ns.adobe.com/mxml/2006">
For flex 4, Gumbo spark component,
<?xml verison="1.0" encoding="utf-8"?>
<s:Applicaiton xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
- will continue in next post..
No comments:
Post a Comment