Re: [flexcoders] 1180 Error
I think Manish is right. There is something wrong with your projects settings or the class is not in the directory structure you specified in the import directive. I'v tried (copy/paste) your code in a new project in my FB eclipse plugin and it works smoothly. I run it and no error it display the 3 objects you've created. Claudiu From: Manish Jethani manish.jeth...@gmail.com To: flexcoders@yahoogroups.com Sent: Friday, January 2, 2009 9:02:44 PM Subject: Re: [flexcoders] 1180 Error On Fri, Jan 2, 2009 at 3:46 AM, jason1701e ja...@jasonbyer. com wrote: I have the following Address Class: package com.jherrington { public class Address { [snip] The problem is that I receive an 1180 Error saying the following: Call to a possible undefined method Address. Is your Address class in the source path? Try declaring a variable of type Address. If you get an error on compilation, your source path is wrong. You can use the source-path compiler argument to mxmlc to add the class to the path (or update the Project Properties in Flex Builder). Manish -- http://manishjethan i.com/
[flexcoders] 1180 Error
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
Re: [flexcoders] 1180 Error
On Fri, Jan 2, 2009 at 3:46 AM, jason1701e ja...@jasonbyer.com wrote: I have the following Address Class: package com.jherrington { public class Address { [snip] The problem is that I receive an 1180 Error saying the following: Call to a possible undefined method Address. Is your Address class in the source path? Try declaring a variable of type Address. If you get an error on compilation, your source path is wrong. You can use the source-path compiler argument to mxmlc to add the class to the path (or update the Project Properties in Flex Builder). Manish -- http://manishjethani.com/