PDA

Click to See Complete Forum and Search --> : divide



aswathi
08-11-2002, 02:19 PM
I am using version 5 of Flash.In a movie,I have kept a sliding bar and a text box to get its y-value.How can I get the value ranging from 1 at the bottom of the bar to 10 at the top.

ericlin
08-12-2002, 03:42 AM
Move your sliding bar to top, record the _y as top. For example, it may be 0; Then move your sliding bar to bottom and record _y as bottom. For example bottom=400;

unit=(top-bottom)/(10-1);
textbox.text=1+(bar._y-bottom)/unit;