# 'toplevel.as' could not be found

**URL:** <https://forum.kirupa.com/t/toplevel-as-could-not-be-found/280548>\
**Category:** flash\
**Created:** [January 28, 2009, 8:00pm UTC](https://forum.kirupa.com/t/toplevel-as-could-not-be-found/280548 "2009-01-28T20:00:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![billbillbillbil](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@billbillbillbil](https://forum.kirupa.com/u/billbillbillbil)\
**Post date:** [January 28, 2009, 8:00pm UTC](https://forum.kirupa.com/t/toplevel-as-could-not-be-found/280548/1 "2009-01-28T20:00:55Z")

</div>

I have re-installed 2004 MX. I have a very simple dynamic masking application. [COLOR=Navy]mask\_mc.onEnterFrame = function() {  
this.\_x = \_root.\_xmouse;  
this.\_y = \_root.\_ymouse;  
};  
maskedbg\_mc.setMask(mask\_mc);[/COLOR]

[COLOR=Black]It works. BUT I get this error message.  
[COLOR=Red]  
**Warning** Scene=Scene 1, layer=action, frame=1:Line 1: The file ‘toplevel.as’, which is required for typechecking ActionScript 2.0, could not be found. Please make sure the directory ‘$(LocalData)/Classes’ is listed in the global classpath of the ActionScript Preferences.  
mask\_mc.onEnterFrame = function() {

Total ActionScript Errors: 1 Reported Errors: 1[/COLOR]

[/COLOR]
