


This post represents my personal opinion; sometimes it makes sense, often not. I reserve the right to edit/delete offensive comments, but I wouldn't mind a couple of politically incorrect statements here and there.
When declaring variables like objects or arrays, there is more than 1 way to declare them. I’m not exactly sure which way is faster, but I have used both scenarios in a variety of occasions. I’m putting this here just to help clarify they mean the same thing.
//Object Declaration 1 var objData:Object = new Object(); objData.fname = "Mr."; objData.lname = "Krinkle"; //Object Declaration 2 var objData:Object = {fname:"Mr.", lname:"Krinkle"}; //Arrays Declaration 1 var arrData:Array = new Array(); arrData.push("Mr."); arrData.push("Krinkle"); //Arrays Declaration 2 var arrData:Array = ["Mr.","Krinkle"];
Leave a Reply