Question
hitTest, onMouseMove functions getting in the way of eachother?
why doesnt this work????!!!!!
projectSearch.clientListMask.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
clientListScroll = Math.max(0, Math.min(this._ymouse-20, 175)) / 175;
calClientListPosition();
} else {
projectSearch.clientLinksHolder.ypos = 40;
}
}
ypos triggers some script that it supposed to tween the mc back to its start position when rolling out of the hit area. all parts work on their own but when i put them together it gets funky.
view the link at http://www.blog.en-vuela.com/projects -- click 'search projects' and then scroll over client list.
i also tried:
projectSearch.clientListMask.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
clientListScroll = Math.max(0, Math.min(this._ymouse-20, 175)) / 175;
calClientListPosition();
} else if (!(this.hitTest(_root._xmouse, _root._ymouse, false))) {
projectSearch.clientLinksHolder.ypos = 40;
}
}
Amy help appreciated!!!
+ d
projectSearch.clientListMask.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
clientListScroll = Math.max(0, Math.min(this._ymouse-20, 175)) / 175;
calClientListPosition();
} else {
projectSearch.clientLinksHolder.ypos = 40;
}
}
ypos triggers some script that it supposed to tween the mc back to its start position when rolling out of the hit area. all parts work on their own but when i put them together it gets funky.
view the link at http://www.blog.en-vuela.com/projects -- click 'search projects' and then scroll over client list.
i also tried:
projectSearch.clientListMask.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
clientListScroll = Math.max(0, Math.min(this._ymouse-20, 175)) / 175;
calClientListPosition();
} else if (!(this.hitTest(_root._xmouse, _root._ymouse, false))) {
projectSearch.clientLinksHolder.ypos = 40;
}
}
Amy help appreciated!!!
+ d