Solved

application has been deprecated since 4.0-use FlexGlobals.topLevelApplication

Posted on 2011-03-01
1
1,033 Views
Last Modified: 2012-08-14
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 DropDownFilterEditor.as



......			
		override public function startEdit(column:MDataGridColumn):void
		{
			editor.startEdit(column);
			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="http://www.adobe.com/2006/mxml" 
				xmlns:controls="com.iwobanas.controls.*" 
				xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*" 
				layout="vertical"  >
	<mx:Script>
		<![CDATA[
			import mx.controls.dataGridClasses.DataGridColumn;
			
			public function dateLabelFunction(item:Object, column:DataGridColumn):String
			{
				return dateFormatter.format(item[column.dataField]);
			}
		]]>
	</mx:Script>
	
	<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)}" />
	</mx:ArrayCollection>
	
	
	< -- had to remove <mx:Panel> since FB4 was happy, even tried <s:Panel> still threw  errors -- >
		<controls:MDataGrid dataProvider="{dp}" width="100%" height="100%">
			<controls:columns>
				<dataGridClasses:MDataGridColumn dataField="name" headerText="Name" />
				<dataGridClasses:MDataGridColumn dataField="birth_date" headerText="Birth Date"
					labelFunction="dateLabelFunction"
					filterEditor="com.iwobanas.controls.dataGridClasses.filterEditors.DateFieldFilterEditor" />
			</controls:columns>
		</controls:MDataGrid>
	

Open in new window

0
Comment
Question by:mebibyte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
ID: 35023782
That means the compiler is suggesting to use the namespace xmlns:s="library://ns.adobe.com/flex/spark"
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
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question