Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS3 - Object class - "Access of undefined property"

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Short of naming lots of variables with prefixes for what section of my config they belong to, I thought I'd make a custom object for each section and assign the properties to them. However - no matter what I do, writing AS3 in FlashDevelop, when I compile I get the access of undefined property error if I try to use any objects! I've tried every example I find online and they all fail! eg

var car:Object = new Object();
car.name = "A car";

or

public var Settings:Object;
Settings = new Object();

or

Settings = { Section1:"" };

or whatever. I'm going mad because this was supposed to be a simple alternative to long variable names, and objects in AS1 were simple to make and get/set properties to. Now I can't even make one ><

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top