Erm, I am not sure I understand; so let me paraphrase:

You want to scroll one area based on the position of a mouse in another, right?

If so, just measure the bounds [x/y difference] from some center range and apply a Tween to the area you want to scroll.

BTW: I would generally always recommend against using timers to apply movements; I've seen far too much code written that uses timers incorrectly and it's a real pain in the *** Stick to simple tween calls; like: TweenLite.

With kind,

Sebastian.

Eric E. Dolecki wrote:
I was thinking about this the other day... easing of a selection of items in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the determination
for how far it should travel) to check if it's within the bounds of an item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items & use an easing approach (or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to