Hello All, This compile error has been driving me nuts for hours:

1046: Type was not found or was not a compile-time constant: ComponentEvent.

I am using a component event for my combobox. It sounds like to me i have not imported the correct class but whatever i try i still get this annoying error message.

This is part my code and all my imports: Any suggestions would be appreciated.

import flash.text.TextField;
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.net.URLLoader;
import fl.controls.Button;
import fl.controls.TextInput;
import fl.data.DataProvider;
import fl.controls.ComboBox;
import flash.text.TextFormat;

aBb.dataProvider = new DataProvider(items);

aBb.addEventListener(ComponentEvent.ENTER, onAddItem);

function onAddItem(event:ComponentEvent):void { <ERROR LINE
var newRow:int = 0;
if (event.target.text == "Add") {
newRow = event.target.length + 1;
event.target.addItemAt({label:"" + newRow, data:"Data" + newRow},