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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s