A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: error message: script running too slowly

  1. #1
    A Flurry of Activity
    Join Date
    Aug 2005
    Posts
    103

    error message: script running too slowly

    i got an error message when i try to test my film saying that a part of the script is causing my computer to run slowly and that it may become unresponsive. i think i might have accidentally ran it into a "loop" because i only got the message after i made a preloader for the vid (for some reson i decided to do the video first...) neway here is my preloader:
    frame 1:
    stop();
    loadpercent = _root.getBytesLoaded()/_root.getBytesTotal*100;
    if (loadpercent != 100) {
    setProperty(bar, _xscale, loadpercent);
    }
    ifFrameLoaded("scene 7",1) {
    gotoAndPlay (3);
    }
    gotoAndPlay (2);
    frame 2:
    gotoAndPlay (1);
    frame 3:
    movie...

    ahhhh i keep looking at it- no syntax errors it says... dang dang dang plz answer soon i wanna keep flashing.... lololol u know wut i mean ha lol... dang less caffeine for me...

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Try using a frame label instead of a scene and frame. Put a frame label there and name it scn7fr1, then change this line to;

    ifFrameLoaded("scn7fr1") {

  3. #3
    A Flurry of Activity
    Join Date
    Aug 2005
    Posts
    103
    alright thx... ur answer helped part of the problem but i think the main problem ended up being that i had it "stop" on frame 1, then goto frame 2 after running stuff- i realized that it would go to frame 2 neway cuz its playing- so thats wut was giving it an error... neway it works beautifully now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center