How would I write a procedure that would build this array such that I could choose as many parameter names such as KBP? I wanted?
public var expenses:ArrayCollection = new ArrayCollection([
{Impact:"A", KBP1:1, KBP2:0, KBP3:0, KBP4:0 },
{Impact:"B", KBP1:0, KBP2:0, KBP3:0, KBP4:0 },
{Impact:"C", KBP1:0, KBP2:2, KBP3:3, KBP4:0 },
{Impact:"D", KBP1:0, KBP2:0, KBP3:0, KBP4:8 },
{Impact:"E", KBP1:0, KBP2:0, KBP3:0, KBP4:0 }
]);
Something like the following: