Mouse coordinates

why doesn’t this work


onClipEvent (enterFrame) {
_root.xval.text = _root._xmouse;
_root.yval.text = _root._ymouse;
}

it’s attatched to a blank mc on the main stage.
there are two dynamic text boxes that have var names of xval and yval … i thought this would work … apparently i’ve missed something :slight_smile:

thanks


onClipEvent (enterFrame) {
_root.val.text = _root._xmouse+","+_root._ymouse;
}

not sure why putting it all in one text box made it work

before it was checking the variable once and then not anymore but now that it is all in one text box it checks on enterFrame like it’s supposed to =)

strange, if you understand why keep posting !! :beam:

so people wouldn’t waste their time responding and just incase anyone else had a similar problem in the future.

::to anyone who cares::
i’ve been experimenting with drawing lines in actionscript etc. and here’s what i came up with in my lil mouse coordinates experiment

enjoy=)