Hello people, I have the following Address Class:
package com.jherrington { public class Address { private var _first:String = ''; public function set first(str:String):void { _first = str; } public function get first():String { return _first; } private var _last:String = ''; public function set last(str:String):void { _last = str; } public function get last():String { return _last; } private var _email:String = ''; public function set email(str:String):void { _email = str; } public function get email():String { return _email; } public function Address(inFirst:String, inLast:String, inEmail:String) { first = inFirst; last = inLast; email = inEmail; } } } And I'm importing it into the following mxml file: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import com.jherrington.Address; [Bindable] private var myAddresses:ArrayCollection = new ArrayCollection ( [ new Address( 'Jack', 'Herrington', 'j...@donotreply.com' ), new Address( 'Lori', 'Herrington', 'l...@donotreply.com' ), new Address( 'Oso', 'Herrington', 'o...@donotreply.com' ) ] ); ]]> </mx:Script> <mx:DataGrid dataProvider="{myAddresses}" width="100%"> <mx:columns> <mx:DataGridColumn dataField="first" headerText="First Name" /> <mx:DataGridColumn dataField="last" headerText="Last Name" /> <mx:DataGridColumn dataField="email" headerText="Email Address" /> </mx:columns> </mx:DataGrid> </mx:Application> The problem is that I receive an 1180 Error saying the following: Call to a possible undefined method Address. Can anyone help me figure out this problem? Thanks