Advertisement

04.07.2008 at 11:37AM PDT, ID: 23302294
[x]
Attachment Details

How to import datagrid into flash as3 application using classes?

Asked by toneDigital in Macromedia Flash

Tags: Flash ActionScript 3

How does one load a datagrid component into a Flash AS3 application? When I run my application through the MXMLC compliler, I get the error "Definition fl.controls:DataGrid could not be found".  I thought importing a component in AS3 would be piece of cake but its not turning out that way. Please help!!

Thanks




Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
package{
 
	
	import fl.controls.dataGridClasses.DataGridColumn;
	import fl.data.DataProvider;
	import fl.controls.*;
	import fl.controls.ScrollPolicy;
 
	import flash.display.Sprite;
	import flash.display.*;
 
 
	
 
	public class UserListView extends AbstractUserListView {
 
 
		public var _dataGrid:DataGrid;
 
		public function UserListView(data:UserListData) {
 
			// Call the super constructor, passing it the
			// data parameter.
			super(data);
 
 
			
			
			
			
			_dataGrid=new DataGrid();
			_dataGrid.x=2;
			_dataGrid.y=24;
			_dataGrid.width=270;
			_dataGrid.height=191;
			addChild(_dataGrid);
			
 
 
 
			// Call draw() when the object is constructed.
			draw(null);
 
		}
		// Override the draw() method.
		override protected  function draw(event:Event):void {
			
 
		}
		
	}
}
[+][-]04.07.2008 at 06:41PM PDT, ID: 21301954

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: Flash ActionScript 3
Sign Up Now!
Solution Provided By: julianopolito
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.08.2008 at 03:00AM PDT, ID: 21303724

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 09:55AM PDT, ID: 21307208

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:00PM PDT, ID: 21309564

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:15PM PDT, ID: 21309703

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:23PM PDT, ID: 21309776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:57PM PDT, ID: 21310029

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628