A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Sliders - HELP!!!!

  1. #1
    Senior Member
    Join Date
    Sep 2001
    Posts
    123
    ok I managed to make a slider like the one on joshdura.com with help from JewishMexican like so:

    Its justa simple action..
    It goes like this..

    //put this code on the MC that you want to slide
    ______________
    onClipEvent (enterFrame) {
    _x -=(_x-/:x)*.1;
    }


    Then on a button add this other code.
    ______________
    on (release) {
    /:x = 100;
    }

    (the 100 is the position where you want it to slide on relase. Its just as simple as that.

    -Reply:

    hey thanks for lemme know the thing...
    all i want to now is that i have never seen ' /:x ' what does this thing do??

    -Reply:

    wat this does, it calls for the root position MC and slides it to x cordinate you type in.


    how would I change the speed? <<<<

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Posts
    123
    any1 comeon. Im sure you guys know ... do you

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    This is what I use:

    onClipEvent (load) {
    speed = 0.2;
    }
    onClipEvent (enterFrame) {
    dist = _parent.tar-currentPos;
    currentPos = _x += dist*speed;
    }

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Posts
    123
    so what would be the action for the button to slide the MC?

    on (release)(
    ??
    )

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