[Flash8] DataGrid won't appear with this code

Hi people :slight_smile:

I am trying to create a DataGrid component with AS and it’s not showing up. Can anyone point out what I am doing wrong?


import mx.controls.*;

createClassObject(DataGrid, "dgTalent", 0, {_x: 0, _y: 0});
    dgTalent.columnNames = ["Character", "Allowed"];    
    dgTalent.addItem({Character: "Affliction", Allowed: "Affliction"});

It’s still really basic right now, but I have to keep it that way until I can at least get the darn thing to show up :look: