Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Help with timeline controller (simple maths?)

Help with timeline controller (simple maths?)

2005-10-28       - By santinilox

 Back
Reply:     1     2     3  

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@(protected)
[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/

Earn $52 per hosting referral at Lunarpages.