A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: position of buttom on scroll bar

  1. #1
    Junior Member
    Join Date
    Jul 2000
    Posts
    27
    Any1 have a script that get the _x position of the buttom on scroll bar, and tell a target, like it
    if position of scrollbuttom (scrollbuttom is the instance name of a drag movie) is between (x100 x110) tell target Y go to frame X, i would that that script check all the time where is the buttom.
    Hope you can undertand.

    Thanks alot for your help.

    Tune




  2. #2
    Stick In The Mud
    Join Date
    Oct 2000
    Posts
    752
    how about...

    function checkbut(x1,x2,frame){
    xpos=Number(_root.scrollbuttom._x);
    if((xpos>x1)&&(xpos<=x2)) _root.Y.gotoAndPlay(frame);
    }

    then you'd use it with...

    checkbut(100,110,X);

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