Flash error "toplevel.as not found"

I was working on a project which required the editing of an old FLA file with Actionscript 2 code. When i tried to compile the movie, i got the following error:

"The file 'toplevel.as', which is required for typechecking ActionScript 2.0, could not be found."

I couldn't find a solution on google, so after a few tries i found the following solution:

The solution

The problem is caused by a missing file in the Flash exe directory.

  • First try to find the toplevel.as file on your computer (just use the search function)

  • If you didn't find it, copy the file to a logical directory (you can download the file here: toplevel.as)

  • If you find it, go to "Edit -> Preferences -> Actionscript -> Actionscript 2 settings" and add the directory with the toplevel.as file to this list.

Now press 'Ok' twice and publish your movie.

Replies to Flash error
6:55 - Saturday, 28th of May, 2011By Cordelia

And I thought I was the sensible one. Thanks for setting me sitraght.

10:40 - Saturday, 28th of May, 2011By mymayuzhyfl

OjNg1D <a href="http://ihfwxxxjndza.com/">ihfwxxxjndza</a>

18:41 - Sunday, 29th of May, 2011By dhsgkqddz

I1OQLv , [url=http://sixgwqqcxvda.com/]sixgwqqcxvda[/url], [link=http://hkciruljyxmo.com/]hkciruljyxmo[/link], http://cruivohpmjay.com/

21:50 - Saturday, 12th of November, 2011By qpcjeqvmcbs

jxeK7u <a href="http://ioqlqjdeiirp.com/">ioqlqjdeiirp</a>, [url=http://zptirivwrsyh.com/]zptirivwrsyh[/url], [link=http://gzafvftflxco.com/]gzafvftflxco[/link], http://ntcsekxkzxiz.com/

2:48 - Monday, 16th of April, 2012By vlemihpjdvn

YzaP9a <a href="http://jtfnkihkajrw.com/">jtfnkihkajrw</a>, [url=http://edkubkmdbfef.com/]edkubkmdbfef[/url], [link=http://vrxtnrdyhfgp.com/]vrxtnrdyhfgp[/link], http://tbmionnxlygs.com/

15:50 - Sunday, 20th of May, 2012By aqtxrmf

x2XkPU <a href="http://mcoldjtcfbdw.com/">mcoldjtcfbdw</a>, [url=http://ierpgedxeiqa.com/]ierpgedxeiqa[/url], [link=http://pbgrkosemmyp.com/]pbgrkosemmyp[/link], http://jfaoqfyzaqsd.com/

Post reply

Name:
Email:
7 + 9**:
Message*:

* Required fields, ** Anti-spam question