Does your Polygon class has a constuctor?
On 1/3/07, Omar Fouad <[EMAIL PROTECTED]> wrote:
u should set the class from static to dynamic in order to get acess to
that
method
On 1/2/07, Matt Ganz <[EMAIL PROTECTED]> wrote:
>
> hi.
>
> i'm having a strange problem. i'm getting compile-time errors when i try
> to
> access a public function in a class. i can successfully access other
> public
> methods in this class from the same place in the codebase (verified thru
> traces), but not this one.
>
> i don't know if it's a weird CVS error or not, but here's what it looks
> like
> when i try to access the method (getArea()):
>
> if (geom instanceof Polygon) {
> var poly:Polygon = Polygon(geom);
> geomarkup.area = poly.getArea(); // error occurs right here.
> }
>
> and here's the error i'm getting:
>
> There is no method with the name 'getArea'. but the method is in there
in
> the class and it looks like this:
>
> public function getArea():Number{
> if(area != null)
> return area;
> }
>
> has anyone had similar issues and can point me in a general direction.
i'm
> a
> little at a loss.
>
> any tips are greatly appreciated. thanks -- matt.
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com