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
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
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
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
: 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
] 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
6 matches
Mail list logo