Flex Tip of the Day: mx free mxml

I have been doing this Flex Tip of the day series on flex-india and people have told me that these tips could be helpful to people outside the list as well so i will re-post the tips I have written about till now here on Rags to Riches over the next few days and then whenever I post a new tip I will post it on both mediums. Most people on the Flex-India list have a beginner - intermediate level expertise in Flex and these tips are focused at that target audience.

So lets start with a very basic yet useful tip ….

mx free mxml

How many times do you type ‘mx’ when writing an mxml application, i
type it zero times .. Here’s how …

<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml">

/*now you can use the tags without mx: and
code hinting in FlexBuilder still works */

   <Canvas>
      <Button/>
   </Canvas>

</Application>


About this entry