actionscript 3 - As3 Error 1046 on KeyboardEvent after creating document class? -


i created document class allow variables public across symbol definitions , layers platformer flash game. upon doing encountered error 1046: 'type not found or not compile-time constant: keyboardevent.' confusion in need put imports document class package, copied across of imports, including 'import flash.events.event' package looked this:

    package {   import flash.events.event; import flash.display.*; import flash.utils.timer; import flash.sampler.newobjectsample; import flash.ui.keyboard; //i added out of confusion import publicvariables; //and       public class publicvariables extends movieclip { 

i've spent hour researching solutions , commenting out bits of code , adding suggested things in, i'm getting driven crazy. program broken , cannot see @ fault here.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -