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

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

You need to import the Event class!

import flash.events.Event