PDA

View Full Version : _xmouse


zebbah
02-20-2003, 09:01 PM
this is really annoying!!
why won't this work?if (this._xmouse < 0) {
trace("_xmouse is less than 0");
}i know _xmouse is less than zero because a dynamic textfield is showing that, but i can't get any actions to run when the condition is met... why?

CyanBlue
02-20-2003, 09:09 PM
Howdy...

Well... It just works fine to me..._root.onEnterFrame = function ()
{
if ((_root._xmouse < 0) || (_root._ymouse < 0))
trace(_root._xmouse + " : " + _root._ymouse);
}This code just traces the _xmouse and _ymouse if the condition is met... I don't see any difference between yours and mine...

Do the trace on this._xmouse before the if statement to see what the value is...

zebbah
02-20-2003, 09:29 PM
thnx a lot, CyanBlue!

man, this is embarrasing! :o
i didn't have the _xmouse inside the onEnterFrame event, so it never got updated and thus never ran any actions...

thnx again for clearing it up!