[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

application has been deprecated since 4.0-use FlexGlobals.topLevelApplication

Posted on 2011-03-01
1
Medium Priority
?
1,054 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

650 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