TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Advanced Menu Bar

Page: 1 Reply
Jun 5th 2002#51594 Report
Member since: Jan 11th 2002
Posts: 63
Does anyone know how to make a graphic follow your mouse when you put your mouse over an invisible bar?
Reply with Quote Reply
Jun 5th 2002#51599 Report
Member since: Mar 16th 2001
Posts: 2421
tell the graphic to
yourgraphic._x = _root._xmouse
Reply with Quote Reply
Jun 5th 2002#51609 Report
Member since: Jan 11th 2002
Posts: 63
Okay, I got it to work with the graphic to move anywhere on the page.

http://216.103.206.232/main2.swf

And now I want it to work so that when you put your mouse over a certain area it will work. And I got the basics down. But as you can see, it's not working right.

http://216.103.206.232/main.swf

Does anyone know whats wrong?
Reply with Quote Reply
Jun 5th 2002#51637 Report
Member since: Aug 9th 2001
Posts: 2333
Check out my site..

http://www.cyblingdesign.com/

Go into portfolio and roll over the links...I'm in my new job right now so i cant give you the script..I'll write back later. I'm just using the onMouseOver even handler and the dragMovieClip thingy....I'll post again around 5pm.
Reply with Quote Reply
Jun 5th 2002#51739 Report
Member since: Jan 11th 2002
Posts: 63
Okay. I look forward to your post. And something may be wrong because im using on (Rollover) with a button. That may be the problem, but I look forward to hearing what you think is the problem.
Reply with Quote Reply
Jun 5th 2002#51756 Report
Member since: Aug 9th 2001
Posts: 2333
//on rollover, make the variable 'follow1' 100% visible
//then frag this clip
//(second script) When you roll out, make the 'follow1' clip invisible

on (rollOver) {
follow1._visible = 100;
startDrag ("follow1");
}
on (rollOut) {
follow1._visible = 0;
}

..is the code i have on the symbol i want rolled over (3D button)

What i have here is a box symbol "follow1" (name of the varialbe) which it the clip that follows your mouse.

This does work, it's just a matter of making things invisible. Feel free to use my script. :D
Reply with Quote Reply
Jun 5th 2002#51783 Report
Member since: Jan 11th 2002
Posts: 63
Hmmmm.......I may be dumb or something but its not working for me. Here is how i got mine setup.
1) This uses 2 layers
2) [], and actions
3) [] is the movie clip that follows the mouse (named "follow")
4) the actions layer has 2 key frames
-on the first keyframe, there is a strip of coding
"mouse_x = _xmouse;
setProperty (_root.follow, _x, mouse_x+((getProperty(_root.follow,_x)-mouse_x)/2));"

-on the second keyframe, there is a strip of coding
"gotoAndPlay (1);"

I know i need an invisible box that will trigger the whole thing, and i may need to take the script from the first keyframe on the actions layer and put it in the onrollover script. Thats what I did in the 2nd link i showed you. But there are 2 problems. #1, I cant get your script to work with mine. and #2, If the invisible box is a button, then when you put your mouse over it, it will show up with a "Hand" instead of the "Pointer" and I dont want that.

Please tell me how I can get your script work with mine. And It would be great if you could give me your icq/aim. (btw, I made sure that i changed follow1 on your script to follow)

And if possible, try to make it so that the invisible box is not a button, if possible, but i dont think it is :(.
Reply with Quote Reply
Jun 6th 2002#51884 Report
Member since: Aug 9th 2001
Posts: 2333
AIM, cybling boyo

ICQ: i'll give it to you later...in work

MSN messenger: [email]cybling@hotmail.com[/email]
Reply with Quote Reply
Jun 6th 2002#51885 Report
Member since: Aug 9th 2001
Posts: 2333
Also, do you havea n example of what you want to do?
Reply with Quote Reply
Jun 6th 2002#51983 Report
Member since: Aug 9th 2001
Posts: 2333
ICQ: 104538064
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum