Flash crashes on Browsers
I'm developing a flash game in cs5 an开发者_Python百科d it works fine on the offline player. When running in browsers, they crash. The game is has a multifile loader and basically when all the files are almost loaded, the browser crashes. At first, it was only working on IE. Then i made some modifications and it was only working on FF 5.0.1 . It never runned on chrome or safari. On another computer with IE8, and finally, the flash gave me a stack trace:
Stack trace from IE
Then I got some stack traces on FF, and I managed to change some class names and another minor stuff and it worked on FF perfectly. But not on IE or chrome.
So I downloaded and installed the debugger version of flash player 10.3, but now on FF it finishes loading and then I get a crash message ( :( )from ff.
Does anyone have passed through it? What it could be?
I'm using FlashBug to see where it crashes. I found the source problem. It looks like a flash bug, or something I not doing well:
if ( vFunctionsMouseClick[mc] == null){
var v:Vector.<Function> = new Vector.<Function>();
vFunctionsMouseClick[mc] = v;
vFunctionsMouseClick[mc].push(f);
}
vFunctionsMouseClick is an Array and mc is a MovieClip and I feel that using it as a Vector index may not be so good. But it only got me problem now.
精彩评论