Hello all,

I need to create a custom Object that basically stores some custom parameters (properties?), which I have successfully done, and the code below works fine.

PHP Code:
myObject = new Object();
myObject.nameLabel "New Releases";
myObject.artOrientation "portrait";
myObject.artAmount 5
I find the new compiler and debugger capabilities very helpful, since I'm not the most detail-oriented, so I (usually) like that Flash forces me to strict-type my variables and such.

Anyway, I was wondering if it's a "best practice" to strict data type a custom objects' properties, and if so, how to do it in the logic above? I kept getting syntax errors when I just tried it initially.

I know if I created a custom Class .AS file, I would be forced to data type the properties... but I'd rather just do it "in-line" in my main .FLA file.

Also, I know I can just pass typed VARIABLES to the properties... but I'd rather have the properties strict-typed themselves... so if I try to pass a variable as the wrong type, then I would still get an error.

Thanks!