lunatic
June 11th, 2003, 06:55 PM
I have this on my navigation clip:
onClipEvent (mouseMove){
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
if(!this.open){
this.tx = -35; //right target
this.open = true
this.execute = this.openNav
}
}else if (this.open){
this.open = false
this.tx = -935 //left target
this.execute = this.closeNav
}
Is there a better way to set the right and left targets? Every time I move or change something I have to reset these numbers and they seem really arbitrary.
onClipEvent (mouseMove){
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
if(!this.open){
this.tx = -35; //right target
this.open = true
this.execute = this.openNav
}
}else if (this.open){
this.open = false
this.tx = -935 //left target
this.execute = this.closeNav
}
Is there a better way to set the right and left targets? Every time I move or change something I have to reset these numbers and they seem really arbitrary.