[flashpro] Help with timeline controller (simple maths?)

elusive elu at elusive.de
Fri Oct 28 18:16:49 EDT 2005


hi santinilox,

you say you can measure the position of the user's click by percent.
and you got the number of frames, right?
Math.round(percent/(100/frames))+1
something like that shoud do the job but it's untested.

e

santinilox wrote:

>Hi all!
>
>I have a little bar for the _root timeline (such as the one you can find in
>any kind of audio/video player). Eg:
>
>|----o--------------------|
>
>If, for example, I have three frames in the _root movie, it would be three
>"checkpoints". Eg:
>
>|------------|------------|
>
>When the user clicks in the 40% of the bar:
>
>|---------x--|------------|
>
>I would like the little-ball go to the second "checkpoint" (ie, the second
>frame in the _root movie):
>
>|------------o------------|
>
>If the user clicks in the 20%:
>
>|---x--------|------------|
>
>The ball (and also the _root movie) would travel to the first "checkpoint":
>
>o-------------------------|
>
>Actually, I know all the values. Eg:
>
>User clicked at = 40%
>_root's _totalframes = 3
>
>I know this is a very stupid question, but I've spent 3 hours with this
>issue. When all works fine with my 3-frames test movie, it won't work with
>my 7-frames test movie, and so on...
>
>Help, please ;-)
>
>
>~s
>
>
>
>		
>______________________________________________ 
>Renovamos el Correo Yahoo! 
>Nuevos servicios, más seguridad 
>http://correo.yahoo.es
>------------------------------------------------------------------
>send message to the list:               mailto:flashpro at muinar.org
>[FlashPro] list info, subscribe, archive:   http://flash-list.com/
>There's also a WebPro mailing list:     http://webdesign-list.com/
>cutting-edge sounds for flash:            http://flash-sounds.com/
>
>
>  
>




More information about the FlashPro mailing list