Hi guys…
I am getting the following two errors:
1046: Type was not found or was not a compile-time constraint: GetSet.
1180: Call to a possibly undefined method GetSet.
I believe if 1046 is solved, 1180 will no longer be a problem. Here are the codes:
File: GetSet.FLA:
var myGetSet: GetSet = new GetSet();
myGetSet.publicAccess = "hello";
trace(myGetSet.publicAccess);
File: Driver.as:
package
{
public class GetSet
{
private var privateProperty:String;
public function get publicAccess ( ) String
{
return privateProperty;
}
public function set publicAccess():String
{
privateProperty = setValue;
}
}
}
Both these files are in the same folder. I dont understand why I am getting this error as the class ‘GetSet’ already exists.