A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: sliding MC in to three different position?

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    40

    sliding MC in to three different position?

    Hi and thanks for trying to help me!
    I'm not so good whith this so i would be very glad if someone could help me.

    I would like to slide (like a motion tween) a movieclip i three diffrent positions
    with thee buttons (only _x positions).

    button 1, 2, 3 should slide the movieclip to x positions 0, 100, 200

    and if u are att x 100 (button 2) and press button 1 it should work sliding backwards to x 0 aswell.

    and if its noot really hard i would like that the slidspeed slowsdown when its near the stop postition.

    Many thanks!!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    on the MC _root.box:
    onClipEvent (enterFrame) {
    if (move == true) {
    _x += (goal-_x)/5;
    }
    }

    on the buttons:
    on (press) {
    _root.box.move = true;
    _root.box.goal=100; // update that value on the 2 others buttons
    }

  3. #3
    Member
    Join Date
    Oct 2000
    Posts
    40

    is this magic! or what!!

    I'm so happy! its perfect
    oh why oh why did i study energytec. instead of computer... should have needed that now. many thanks to you!

    i must say it again ! i'm impressed and ...i cant spell english

    have a nice sunday!

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    you're welcome

    gparis

  5. #5
    Junior Member
    Join Date
    Sep 2000
    Posts
    25
    Really very nice!
    is it possible to have a little bounce that movement
    In that case how that is explained in actionsscipting?
    thnx
    chris

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