application has been deprecated since 4.0-use FlexGlobals.topLevelApplication

Finished cleaning up 14 errors but this last one is killing me.  

Is it referring to changing <mx:Application> to <s:Application> ?.  However, it points to

PopUpManager.addPopUp(this, Application.application as DisplayObject);

which is located within

		override public function startEdit(column:MDataGridColumn):void
			super.startEdit(column); // this must be called after editor startEdit to correctly set columns editor instance
			PopUpManager.addPopUp(this, Application.application as DisplayObject);


Open in new window

Using FlexBuilder4

mxml file:

<mx:Application xmlns:mx="" 
				layout="vertical"  >
			import mx.controls.dataGridClasses.DataGridColumn;
			public function dateLabelFunction(item:Object, column:DataGridColumn):String
				return dateFormatter.format(item[column.dataField]);
	<mx:Style source="defaults.css" />
	<mx:DateFormatter id="dateFormatter" />
	<mx:ArrayCollection id="dp">
		<mx:Object name="John Potter" birth_date="{new Date(1984,11,04)}" />
		<mx:Object name="Emmily Richardson" birth_date="{new Date(1985,3,20)}" />
		<mx:Object name="Michael Berg" birth_date="{new Date(1985,3,4)}" />
		<mx:Object name="Denis Henderson" birth_date="{new Date(1985,5,13)}" />
		<mx:Object name="Sandra Russel" birth_date="{new Date(1985,11,17)}" />
	< -- had to remove <mx:Panel> since FB4 was happy, even tried <s:Panel> still threw  errors -- >
		<controls:MDataGrid dataProvider="{dp}" width="100%" height="100%">
				<dataGridClasses:MDataGridColumn dataField="name" headerText="Name" />
				<dataGridClasses:MDataGridColumn dataField="birth_date" headerText="Birth Date"
					filterEditor="com.iwobanas.controls.dataGridClasses.filterEditors.DateFieldFilterEditor" />

Open in new window

Who is Participating?
deepanjandasConnect With a Mentor Commented:
That means the compiler is suggesting to use the namespace xmlns:s="library://"
in your application tag.

If you do not want to use the spark components, just right click on project to get its properties dialog, navigate to Flex Compiler, and select a SDK below 4.

Warm Regards
Deepanjan Das
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.