here is the code:
var LO : CLoadObjects[]=new CLoadObjects[4];
LO[0].sLabel="SS class";
CLoadObjects is the container class, and one of its members is sLabel : String
it gives me error “expecting “}” found LO”
what i am doing wrong?
thanks!
here is the code:
var LO : CLoadObjects[]=new CLoadObjects[4];
LO[0].sLabel="SS class";
CLoadObjects is the container class, and one of its members is sLabel : String
it gives me error “expecting “}” found LO”
what i am doing wrong?
thanks!
Post the rest of your script file please; the error may not be here.
Regardless, I think you’ll run into a run-time error. You probably need to initialize the values of your array first (I’m assuming CLoadObjects are a custom class of yours)
var LO : CLoadObjects[]=new CLoadObjects[4];
for (var i : int = 0; i < LO.Length; i++)
{
LO[i] = new CLoadObjects();
}
LO[0].sLabel="SS class";