Error #1502: A script has executed for longer than ...


#1

Hi all !
I have a website that serves a flash movie ( swf ). There is a loader movie, that loads the main movie and communicates with php. However while loading the main movie, I get the error in the heading above. The main movie has almost 110 sound files besides other clips buttons etc. After struggling a lot and ruling out error due to any other reason, I deleted the 110 sound movies and lo ! the movie worked !! Then i started adding the sound files again and was able to add about a 47 of them without any error. The movie loaded within 5 seconds max. However beyond that point, if I add just one more sound file, the movie fails to load and I get this error.

Now all search on Error 1502 says it occurs due to infinite loops etc or bad code. However nothing on file size etc. or the limit on adding the size of the library. Please can someone make a suggestion how to solve this issue?

I would also like to mention that the file size of the main flash file is only 1952kb and that of the corresponding swf is 712 kb , ceratainly not great by any means.

Thanks all !
Ajoo


#2

help me please, I also have the same problem


#3

Hi Lam_Kevin,
I hope that someone makes a reply to this so that both of us can solve this issue.
Meanwhile I am also looking into it and if i find a solution i will definitely offer it here for all.
Thanks.


#4

Can you post the code you are using for loading the external content?


#5

I’ve not heard or seen this before. I wonder if a workaround would be to refer to the sound files externally instead?


#6

Hi Kirupa, Senocular !!

Thank you guys for the response.

I had also posted my question on another forum, link below


and got a very detailed reply by another Flash Guru, Zwetan, like you guys. I have not posted my code on that forum either but i plan to post it.
So he nailed the issue which was that i was doing too much on the first frame & suggested 3 solutions, one of which is the same as suggested by SENOCULAR!
I however decided to spread my content across 3 frames and that seems to have solved the issue.
@KIRUPA: I will revert with my code for the benefit for all soon.
@ LIAM KEVIN: My issue was due to overloading the 1st frame. But this issue can also occur due to an infinite kind of loop running therein as well.

Thanks you all very much.


#7

Hi All,
Please find the code files (modified and simplified ) attached.
This is a working version and to see it crash, a number of sound files will have to be attached to the library of the flash file dogyears.fla.

So while the crashing is rectified by dividing the imported sound files across frames, the sounds still do not play.

To run the movie, invoke AS3_swf_php_comm_1.html from localhost which will then load another movie dogyears_1.swf which communicates with php. Add a number in the left box and press the button to see it multiplied by 3 in the right box. Press the button again and it moves to the 2nd frame, displays a small orange bar and is supposed to emit some sounds but it does not.

I would be glad if someone can find out why the sounds are not playing.
Thanks all !
AS3_swf_php_comm_1.zip (82.1 KB)


#8

Hi Gurus Senocular & Kirupa and all !

I would be grateful if someone can look into the issue and see why the sounds do not play while the movie does .

Thank you !