PDA

View Full Version : is there a better way to do this? start position, end position



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.

Meridian
June 12th, 2003, 01:06 AM
Check this out :)

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25523

lunatic
June 12th, 2003, 11:43 AM
Hey thanks for replying but that didn't really help . . . that thread was actually how I found the EricNavMenu in the first place. But I am having the same problem the original poster to that thread had and he didn't seem to get an answer . . .

I see from another post that you are having similar problems. Did you figure it out? :s:

Meridian
June 12th, 2003, 12:42 PM
Sorry about that try looking at this

lunatic
June 12th, 2003, 01:04 PM
That is sweet! Very complicated too (to my newbie eyes anyway). How'd ya figure it all out?:P

Meridian
June 12th, 2003, 01:10 PM
I worked on a few projects with a programer who's very good. He did all the coding I did the design and came up with the interactivity.

It's in a movie clip so all you need to do it cun n paste it into your file and then modify it to your hearts content

Check this file out too