2 Replies Latest reply on Dec 4, 2006 1:20 AM by Ehud35new

    to murghob

    Ehud35new
      you gave me this script ::::
      var MouseListener:Object = new Object()
      MouseListener.onMouseMove = function() {
      trace("_xmouse: " + _xmouse + ", _ymouse: " + _ymouse)
      xBox_txt.text = _xmouse;
      yBox_txt.text = _ymouse;
      }
      Mouse.addListener(MouseListener)

      As I was trying to do this...there is new little screen (white one) that open with this information....
      and the numbers are running...what about the screen where the movie suppose to show it...?
      it is still blank...do i need to change ate the var box somthing or the Dynemic text ?



        • 1. Re: to murghob
          Marghoob Suleman Level 1
          Please donot post special thread for a particular person. you could ask me there only. anyway.

          Okay, white box is trace window. basically used for debug.

          var MouseListener:Object = new Object()
          MouseListener.onMouseMove = function() {
          //comment the following code. it will not show the trace window.
          //trace("_xmouse: " + _xmouse + ", _ymouse: " + _ymouse)

          // xBox_txt is your text box where want to show your _xmouse value.
          // you should replace xBox_txt and yBox_txt to your dynamic created textfield.
          // it was just for an example

          xBox_txt.text = _xmouse;

          //yBox_txt is your text box where want to show your _ymouse value.
          yBox_txt.text = _ymouse;
          }

          Mouse.addListener(MouseListener)

          //feel free to ask anything if still missing something.
          • 2. Re: to murghob
            Ehud35new Level 1
            thank you Marghoob Sulemaan it is working :)