Hi there,
I've been writing flash gallery for a while and almost finished it, but encounter some problems in the end.
This is nearly that same gallery like : http://www.simpleviewer.net/simpleviewe ... les/hires/
You can watch it at http://www.karolina-art.pl/gallery/bin
The problem is that I can't handle tweening the thumbnail menu properly if click rapidly two or more times next arrow button.
I've managed to solve this by using TweenMax.isTweening() method, so that I have:
public function next():void
{
var startingThumbnailMenu:int = ThumbnailMenu.getInstance().startingThumbnailMenu;
var currentThumbnailMenu:int = ThumbnailMenu.getInstance().x;
var difference:int = currentThumbnailMenu-startingThumbnailMenu;
if (!TweenMax.isTweening(ThumbnailMenu.getInstance()))
{
TweenMax.to(ThumbnailMenu.getInstance(), 0.3, { x:"-216" } );
screenNumber++;
updateArrows();
}
}
And nearly the same prev() method differing only by x":+216" in TweenMax.to() method.
It works but it not as good as it could be since the delay is visible and user sees that
I'm actually preventing her/his from clicking to fast in the arrow buttons.
In SimpleViewer everything works better because users actions are queued and no action is prevented.
How to achieve this effect using TweenMax?
I hope you can help me handle it.