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

  1. #1

    Default onEnterframe issues

    I am using onEnterframe in the 17th frame of my movie to control the _x
    position of an empty movie clip. The empty movie loads and positions properly.
    When I use _root.onEnterframe the script inside does not work, not even a
    trace command. in addition, setMask will not work in this frame even though it
    works in the next frame over. Any suggestions?

    _root.createEmptyMovieClip("sliding_mc", 0);
    //set the dimensions of the display mc
    sliding_mc._x = -450;
    sliding_mc._y = 41;
    sliding_mc.loadMovie("sliding-pics7.swf");
    sliding_mc.setMask(slidingMask_mc);
    _root.onEnterFrame = function() {
    trace("l");
    if (sliding_mc._x<24) {
    sliding_mc._x += 1;
    }
    };
    stop();

    ldebono Guest

  2. Similar Questions and Discussions

    1. onEnterFrame doesn't it work?
      why doesn't it work? if(i<=_root.myJpg.length-1){ this.createEmptyMovieClip("myjpg"+i, i); trace("return i" + i) this.onEnterFrame =...
    2. onEnterFrame consumes memory
      You could try making an array with all the planet's instance names loop through the array every iteration of the "Enterframe" loop. If you have...
    3. accessing XML obj from within onEnterFrame
      I'm seeing some behavior that I don't understand. The setup is a bit involved, but I will attempt to summarize. On the root timeline I initialize...
    4. Any MX/XP Issues?
      I'm getting ready to launch my freelance multimedia business and making a big upgrade to Director MX from (and I'm a little embarrassed by this)...
    5. XP PRO has WEP issues
      Kerby Krien wrote: Disable Wireless Zero Configuration service. Enter the WEP passcode and key cyphers manually. Q
  3. #2

    Default Re: onEnterframe issues

    its not working cause you aren't referencing the movie clip.

    --> _root.onEnterFrame should be: _root.emptyMovieClip.onEnterFrame (if emptyMovieClip is in the root)

    Zerodonor Guest

  4. #3

    Default Re: onEnterframe issues

    that doesn't work either. nothing within the onEnterframe in this frame will
    work despite that fact that if i cut and paste the exact script (excluding the
    loading of the movie) into the next frame over it works fine. it just won't run
    the scipt if the loading is in the same frame with it.

    ldebono 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