Hi, can someone help me understand this because it's working in as3 but not so much in flex and I really can't seem to get my head around it. I can get it working by changing my function to static but I don't want to do this.
Ok so first I've created a package
package testPackage
{
public class TestClass
{
public function TestClass()
{
}
public function traceName(str:String):void
{
trace(str);
}
}
}
and then I'm trying to import that package and create a class from that
import testPackage.TestClass;
var getClass:TestClass = new TestClass();
getClass.traceName("hello");
But I keep getting the error Access of undefined property getClass