[flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread justSteve
I have a public class that defines a method as: public function getData( ):String { return mData; } In an mxml file, I've imported that package and attempt to call ( _nav = getData(); ) but get '1061: Call to a

Re: [flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread Dan Vega
The static error leads me to believe you have not instantiated your object yet. Have you created the object or are you directly trying to call the method? var obj:myObject = new myObject(); obj.getData(); On Fri, May 30, 2008 at 9:42 AM, justSteve [EMAIL PROTECTED] wrote: I have a public

Re: [flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread justSteve
Thankx...if i set code as you suggest I eliminate the compiler error but it causes this problem: The class I'm trying to hit has already instantiated by the time the MXML file calls getData (it's called from the creationComplete handler). Creating a new one from my MXML file won't work cuz the

Re: [flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread Dan Vega
Can you share your code? I am sure I could tell you whats wrong if I can see what your doing but I am just not sure from the little bit of info I have. Dan On Fri, May 30, 2008 at 10:28 AM, justSteve [EMAIL PROTECTED] wrote: Thankx...if i set code as you suggest I eliminate the compiler

RE: [flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread Gordon Smith
: Friday, May 30, 2008 6:42 AM To: flexcoders Subject: [flexcoders] Problems accessing a class method from an mxml file I have a public class that defines a method as: public function getData( ):String { return mData; } In an mxml file, I've imported that package and attempt to call ( _nav

Re: [flexcoders] Problems accessing a class method from an mxml file

2008-05-30 Thread Sherif Abdou
] On Behalf Of justSteve Sent: Friday, May 30, 2008 6:42 AM To: flexcoders Subject: [flexcoders] Problems accessing a class method from an mxml file I have a public class that defines a method as: public function getData( ):String { return mData; } In an mxml file, I've imported that package