A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] script slowing flash down

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    14

    resolved [RESOLVED] script slowing flash down

    I have an empty shell player which loads swf movies in via the loadmovie function.

    I have tested the shell and menu which does the above...all ok so far.

    each swf is essentially a unit of work or presentation with scenes used as pages and each scene contains the following code so the user can travel from scene to scene prev or next. However when running it and using the arrow keys....after some time it starts to slow down and I get the message that a script is slowing flash down and do I want to abort the script....could someone point me as to why and a possible solution.

    //this is a frame script that uses the two arrow keys

    delete keyListener;
    var keyListener:Object = new Object();
    keyListener.onKeyDown = function() {
    var keyCode = Key.getCode();
    if (keyCode == 37) {
    prevScene();
    }
    if (keyCode == 39) {
    nextScene();
    }
    };
    Key.addListener(keyListener);
    stop();

    //should I be using something different and even NOT using it as a frame script...could this be why it is slowing flash down.

  2. #2
    Junior Member
    Join Date
    Jul 2010
    Posts
    14
    will use presentation slides for each unit/s; as presenations have key navigation already active.

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