CoR
02-17-2009, 11:11 PM
Hi to all :D
I want to create something (myClass/myFunction, whatever) that is able to call a function, give focus to FlashPlayer and let it do it's drawing, singing, whatever AND after FP is done, to call that function again.
Timer and onEnterFrame are only two methods I know about that do this.
Timer calls function on some ms, let FP do it's thing and calls back function few ms later. onEnterFrame calls function on frame rate but it's basically same thing.
Is there a way to create game loop that doesn't use timer or enterframe as starter?
Pure event calls are not working :(
Is it possible in AS3???
I want to create something (myClass/myFunction, whatever) that is able to call a function, give focus to FlashPlayer and let it do it's drawing, singing, whatever AND after FP is done, to call that function again.
Timer and onEnterFrame are only two methods I know about that do this.
Timer calls function on some ms, let FP do it's thing and calls back function few ms later. onEnterFrame calls function on frame rate but it's basically same thing.
Is there a way to create game loop that doesn't use timer or enterframe as starter?
Pure event calls are not working :(
Is it possible in AS3???