Groups | Blog | Home
all groups > flash actionscript > may 2007 >

flash actionscript : Bad script?


mydoofy
5/13/2007 12:00:00 AM
Hi everyone! You've read it a million times before but yes, I'm a beginner. I
am and have been creating a slide show that is rather large. It has
progressively gotten slower due to the content and perhaps some of my animated
symbols and possible noob tweening skills (w/o AS). *see error below* Anyway,
before I know it I move my cursor over a button and the associated sound and
color change is very delayed and going to the next slide doesn't happen as
quickly etc. etc. Now I have searched the web and reviewed several articles
but nothing has really worked for me to find out what's going on.

So, is there a noob way or something easy to figure out why I'm getting the
error below? ...like what script and where it is?

[b]A script in this movie is causing Macromedia Flash Player 8 to run slowly.
If it continues to run, your computer may become unresponsive. Do you want to
abort the script?[/b]

I know very little about AS to figure out what script is the problem and why
the way the script in question causes this problem. Is it possible that my
elementary tweening skills are done poorly? Is that even considered a script
or is it only a script when you tween using AS instead?

I hope this makes sense and someone can assist. Let me know if I can provide
more information. Thank you in advance for any suggestions or tips you may
provide. :) Much appreciated!
abrahamyan.com
5/13/2007 12:00:00 AM
the error is about the script.
for example u could have infinity loops inside the code and u will get that error.
mydoofy
5/13/2007 12:00:00 AM
Trevor McCauley - Adobe
5/13/2007 9:29:08 AM
You can also get it with circular navigation. For example in frame 1 saying
gotoAndPlay(2) and in frame 2 saying gotoAndPlay(1);

It can also be a result of populating something like a datagrid with too
much data at one time. Though internally the data grid is using a loop, its
nothing you are seeing in your own code and nothing you'd be able to change
by modifying a (the) loop. That would instead require that less data be
provided to the component for any given time.

Most likely, as Rothrock and kglad have said, it's some kind of for/while in
your code that is getting stuck in an infinite loop.

[quoted text, click to view]

Rothrock
5/13/2007 3:35:09 PM
kglad
5/13/2007 4:07:24 PM
abrahamyan.com
5/13/2007 5:54:49 PM
man, just check your code and find all loops inside for,while,do...
if you find something:
for(var i=1;i<=some_cnt;i++)
than try to find if "some_cnt" variable has value.
the same with other loops.

AddThis Social Bookmark Button