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


Leave a Reply

Your email address will not be published. Required fields are marked *