A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: controlling menu movement with mouse

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Posts
    540
    How do i control a horizontal menu bar (make it go to the left and the right) when a user moves their mouse to the left and right in that general area?

    thank you for your help-
    justin

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Create a 3 frame mc

    Frame 1:
    Lock mouse to center

    Frame 2 :
    SetProperty("/mcinstnacename",XPosition)=(GetProperty("",_x)/2)+50

    Frame 3 :
    Go to and Play frame 2

    You'll have to tweak the arithmatic quite a bit to get it right. You can also have Set variable for frame 2. and use the variable to set the XPosition of the mc either from the locked mc or the main timeline.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center