It works fine as a seperate application. when i convert this code to a
custom component its not working. I dont know where I am going wrong
please help me friends.

Here is the code for my custom component.

<?xml version="1.0" encoding="utf-8"?>
<mx:DateField xmlns:mx="http://www.adobe.com/2006/mxml";
yearNavigationEnabled="true" disabledRanges="{[{rangeStart: new
Date(new Date().getFullYear(),new Date().getMonth(),new
Date().getDate()+1)}]}"/>
</mx:DateField>

The above code should be saved as DfDisableFromToday.mxml

And here is my application in which i try to use my custom component
above

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
xmlns:mycomp="*" layout="absolute">
<mycomp:DfDisableFromToday/>
</mx:Application>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to