Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default stalling AS

    I would like to halt the execution of some actionscript I have.
    Basically, I have a funtion that does a bunch of stuff and I would like
    to stall the excecution at certain points. Is there code that stops the
    reading of the code for a certain amount of time?

    Below is the code and I indicated where I want to stall the whole thing:

    function homeSet01(){
    // set the postion of the navigation for the home page...
    navigation.endX = 40;
    navigation.endY = 36;

    //stall here for about 1 sec...???

    mask_01.endX = 278;
    mask_01.endY = 36;
    mask_01.endWidth = 105;
    mask_01.endHeight = 0;
    mask_01.endAlpha = 100;

    //stall here for about 1 sec...???

    mask_02.endX = 387;
    mask_02.endY = 36;
    mask_02.endWidth = 105;
    mask_02.endHeight = 0;
    mask_02.endAlpha = 100;

    //stall here for about 1 sec...???

    mask_03.endX = 496;
    mask_03.endY = 36;
    mask_03.endWidth = 105;
    mask_03.endHeight = 0;
    mask_03.endAlpha = 100;

    //stall here for about 1 sec...???

    mask_04.endX = 605;
    mask_04.endY = 36;
    mask_04.endWidth = 105;
    mask_04.endHeight = 0;
    mask_04.endAlpha = 100;
    };

    Thanks so much for the help!!!
    B

    Brian Guest

  2. Similar Questions and Discussions

    1. FLV recording stalling
      Sometimes when a nestream is published to FMS and recorded the first part of the stream stalls on frame one and then the rest of the stream plays...
    2. Intermittent stalling
      This is behaviour I've never seen before. Basically the symptoms are: - every minute or two, ColdFusion stops processing requests - requests...
    3. Application Stalling
      I have a multi-accordion, multi-tabs form, whth a login form initially. When i logon, then i begin to enter data in the form, perform several...
    4. Stalling on new sprites
      I desperately hope somebody can help. I have put some serious hours in to a director presentation that runs as a slide show. Still images fade in...
    5. stalling AS execution
      I would like to halt the execution of some actionscript I have. Basically, I have a funtion that does a bunch of stuff and I would like to stall...
  3. #2

    Default Re: stalling AS

    you need to break it up into seperate functions, and use setInterval().
    Something like:

    function homeSet01(){
    // set the postion of the navigation for the home page...
    navigation.endX = 40;
    navigation.endY = 36;
    rCurrentInt = setInterval (homeSet02, 1000)
    };

    function homeSet02(){
    clearInterval (rCurrentInt)
    mask_01.endX = 278;
    mask_01.endY = 36;
    mask_01.endWidth = 105;
    mask_01.endHeight = 0;
    mask_01.endAlpha = 100;
    rCurrentInt = setInterval (homeSet03, 1000)
    };

    function homeSet03(){
    clearInterval (rCurrentInt)
    mask_02.endX = 387;
    mask_02.endY = 36;
    mask_02.endWidth = 105;
    mask_02.endHeight = 0;
    mask_02.endAlpha = 100;
    rCurrentInt = setInterval (homeSet04, 1000)
    };


    etc...

    hth
    }`¬P

    --
    ---------------------------------------
    [url]http://www.phageinteractive.com[/url]
    PhageInteractive Ltd.
    remove mm_ to mail
    ---------------------------------------
    'I wish we lived in a world where it was possible to be religious and think
    at the same time.' - Jonh Graves


    "Brian" <info@agilitygraphics.com> wrote in message
    news:bvceq9$6eo$1@forums.macromedia.com...
    > I would like to halt the execution of some actionscript I have.
    > Basically, I have a funtion that does a bunch of stuff and I would like
    > to stall the excecution at certain points. Is there code that stops the
    > reading of the code for a certain amount of time?
    >
    > Below is the code and I indicated where I want to stall the whole thing:
    >
    > function homeSet01(){
    > // set the postion of the navigation for the home page...
    > navigation.endX = 40;
    > navigation.endY = 36;
    >
    > //stall here for about 1 sec...???
    >
    > mask_01.endX = 278;
    > mask_01.endY = 36;
    > mask_01.endWidth = 105;
    > mask_01.endHeight = 0;
    > mask_01.endAlpha = 100;
    >
    > //stall here for about 1 sec...???
    >
    > mask_02.endX = 387;
    > mask_02.endY = 36;
    > mask_02.endWidth = 105;
    > mask_02.endHeight = 0;
    > mask_02.endAlpha = 100;
    >
    > //stall here for about 1 sec...???
    >
    > mask_03.endX = 496;
    > mask_03.endY = 36;
    > mask_03.endWidth = 105;
    > mask_03.endHeight = 0;
    > mask_03.endAlpha = 100;
    >
    > //stall here for about 1 sec...???
    >
    > mask_04.endX = 605;
    > mask_04.endY = 36;
    > mask_04.endWidth = 105;
    > mask_04.endHeight = 0;
    > mask_04.endAlpha = 100;
    > };
    >
    > Thanks so much for the help!!!
    > B
    >

    Peter Blumenthal Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139