1 Reply Latest reply on May 3, 2006 10:33 AM by Newsgroup_User

    problem help me

    Abyu
      Hi
      iam having a problem my flash movie is there is Movieclip symbol when i click it the number of times i click it should be displayed in a dynamic text box the code used is not working
      i entered this code in the movie clip symbol named "ball 2"

      onClipEvent (load) {
      _root.count=counter, "";
      }
      onClipEvent (enterFrame) {
      var counter:Number = 0;
      var mouseListenerobject = new Object();
      mouseListener.onMouseDown = function() {
      _root.count = counter++;
      trace(counter);
      };
      Mouse.addListener(mouseListener);
      }
      where count is the textbox var
      plz help me
        • 1. Re: problem help me
          Level 7
          trace("onClipEvent (enterFrame) - counter:"+counter); // To be sure your
          code gets you here.
          _root.count.text = counter++; // Use the text or htmlText
          property


          --
          Lon Hosford
          www.lonhosford.com
          May many happy bits flow your way!
          "Abyu" <webforumsuser@macromedia.com> wrote in message
          news:e3a0os$5cb$1@forums.macromedia.com...
          Hi
          iam having a problem my flash movie is there is Movieclip symbol when i
          click
          it the number of times i click it should be displayed in a dynamic text box
          the
          code used is not working
          i entered this code in the movie clip symbol named "ball 2"

          onClipEvent (load) {
          _root.count=counter, "";
          }
          onClipEvent (enterFrame) {
          var counter:Number = 0;
          var mouseListenerobject = new Object();
          mouseListener.onMouseDown = function() {
          _root.count = counter++;
          trace(counter);
          };
          Mouse.addListener(mouseListener);
          }
          where count is the textbox var
          plz help me


          onClipEvent (load) {
          _root.count=counter, "";
          }
          onClipEvent (enterFrame) {
          var counter:Number = 0;
          var mouseListenerobject = new Object();
          mouseListener.onMouseDown = function() {
          _root.count = counter++;
          trace(counter);
          };
          Mouse.addListener(mouseListener);
          }