<?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/ --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*" layout="vertical" verticalAlign="middle" backgroundColor="white" viewSourceURL="srcview/index.html"> <mx:ApplicationControlBar id="appControlBar" dock="true" /> <comps:MyDateField width="100%" height="100%" /> </mx:Application>