setTimeout not work in class file

hi friends,
today i found a issue with flash, i use setTimeout function in my class file and it give me an error,

Solution :
go to – C:\Documents and Settings\Administrator\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes folder
then edit toplevel.as file and add “intrinsic function setTimeout():Number; function” (without quotes)
now restart flash if it is running
usage : _global.setTimeout(Delegate.create(this,myFunction),time in ms);

and finally its run fine