PDA

View Full Version : how to create this silder bar


pgeric
03-17-2006, 03:57 PM
hi, any ideas how this silde bar was created?
Is this could created without actionscript?

www.upn.com => the middle right larger pic link with text TOP MODEL REUNION
WHERE THE GIRLS ARE => bottom slider bar

over the bar, the ease in / out would found only on tweening, how to do that will actionscript? Thanks you

Eric,
Regards

Morg
03-17-2006, 04:26 PM
You would use something like this:

myMC._x += (newX-myMC._x)/5;

That basically will make the clip slow down as its moving along. Look at this link aswell. Its a common use in Flash and has been spoken about at length: http://www.actionscript.org/forums/search.php3?searchid=2203264

pgeric
03-17-2006, 08:52 PM
You would use something like this:

myMC._x += (newX-myMC._x)/5;

That basically will make the clip slow down as its moving along. Look at this link aswell. Its a common use in Flash and has been spoken about at length: http://www.actionscript.org/forums/search.php3?searchid=2203264

hi, Morg,

thanks you your code, that's a great help and provides a way to lead me to a right direction.

so, based-on the code you suggested. Is it should I use the formula by Newton's motion law ( e.g. v / t etc) will brings up more power effect?





Thanks you

Eric,
Regards

Morg
03-20-2006, 06:20 AM
Yes. If you follow the link I sent, you will see some good examples on this.

oldnewbie
03-20-2006, 06:31 AM
Problem is your link leads nowhere!