A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: How to make this button system?

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    29
    oohhh k.
    5 buttons in a row.
    there is a bar above them.
    when u click a button, a coloured barwilll slide along the bar mentioned b4, and stay above the button pressed.
    So imagine u click on the 1st button. Then the 2nd button, and the bar slides from the 1st accross to the 2nd. And when you click the first again, it slides BACK to the first.

    Thats the bit i cant do. Can you make tweens play backwards?/? I could maybe create the whole thing with a very long movie and heaps of Goto actions and have every possible tween in it...but that would take for ages
    so, can anyone help?

  2. #2
    Junior Member
    Join Date
    Jun 2001
    Posts
    15
    Personally, I'd do it all with Actionscript. Tell the script where the bar is, and where it's going, then have it move between the two. (It's fairly complicated unfortunatly).

    You can play clips backwards with Actionscript too.

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    10
    hey man. i cant tell you how to do it exactly, but it has to do with getProperty tag, you don't do it with tweens, you do it with coordinates. this is the best i can do

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    29
    argh, where can i learn that stuff?

  5. #5
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    hello, i made a fla for u which u can get at http://www.avidasense.com/eng/help/index.htm

    it's called sliding_bar and i hope this is what u needed.
    please let me know if u have any difficulty.

  6. #6
    Junior Member
    Join Date
    Jan 2001
    Posts
    29
    mate thats amazing
    thanks


    but....how can u make it so it has easing and tinting in the movement? http://www.studiotimo.com is an example

    thanks so far mate

  7. #7
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    here u are. u can find the fla at the same place as before:
    http://www.avidasense.com/eng/help/index.htm

    there is only one thing i couldn't do and that is to reset the color of the button to NONE when u roll out or click another button. to find out how to do it -if it's possible, i posted a thread.

    what i did then was to set an initial color which i called "color0" and used this value to simulate color resetting.
    please consider that i'm not a math person but i hope this way of doing it helps u.

  8. #8
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    hi again
    someone kindly replied to my post about resetting the instance's color to none and i made the changes to the fla.

  9. #9
    Junior Member
    Join Date
    Jan 2001
    Posts
    29
    mate.....your a god
    Thank you so much man. Ur seriously a legend. Thankyou so much. To go out of your way to help someone is too rare these days. Thanks mate, u rock


    btw, the system is perfect

  10. #10
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    u're welcome. it's the least i can do.. others help me too.
    and i'm a girl

  11. #11
    Junior Member
    Join Date
    Jan 2001
    Posts
    29
    where i come from ( australia ) a mate is a guy or a girl..its a friend

    when i talk about my chick friends, i say mates.



    BTW, where can i learn that stuff :P

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