1 Reply Latest reply on Jul 25, 2006 10:00 AM by Newsgroup_User

    what is wrong with this little code block

    hushhurt
      what is its deal?

      most of the time it works...but sometimes it doesnt - help!
        • 1. Re: what is wrong with this little code block
          Level 7
          hushhurt,

          > what is its deal?

          Royal Flush.

          > most of the time it works...but sometimes it doesnt - help!

          Let's see that code. :)

          > _root.onEnterFrame = function() {
          > if (news_mc._currentframe == 62) {
          > news_mc.gotoAndPlay(63);
          > news_mc.enabled = false;
          > activeBtn = news_mc;
          > myMCL.loadClip("birdLine.swf", 5);
          > }
          > else if (news_mc._currentframe >= 72) {
          > delete this.onEnterFrame;
          > }
          > };

          In what way does this only work most of the time? Can you provide a bit
          more detail on what seems to fail? Your code handles two scenarios: a)
          when news_mc is on frame 62 and b) when that movie clip is on frame 72 or
          higher. You haven't accounted for any other scenarios, so maybe your movie
          clip is on frame a frame lower than 72 but not 62?


          David
          stiller (at) quip (dot) net
          Dev essays: http://www.quip.net/blog/
          "Luck is the residue of good design."