Greetings 2 all 2nite, or 2day if that is your way!
I'm having a little difficulty with a project here because I do not fully understand how to use ActionScript to its fullest potential.. I'm still very green with "AS" you could say..
So on with the problem.
I'm working on
THIS Thumbnail Scrollbar (please excuse the spooky baby faces!), and the problem that I'm encountering is that when you scroll back and forth to the left and right some of the thumnails get stuck in their "up" state and do not return to their smaller sizes. It usually happens a lot more when you are making the scrollbar move slowly.
I'm using the actionscript in the sample below to make the thumbnails play their movie sequence of growing and shrinking.
// used on first frame of movieclip for growing and shrinking
this.onEnterFrame = function ()
{
if (active == true)
{
nextFrame();
}
else
{
prevFrame();
} // end if
};
- // used on first frame of movieclip for growing and shrinking
- this.onEnterFrame = function ()
- {
- if (active == true)
- {
- nextFrame();
- }
- else
- {
- prevFrame();
- } // end if
- };
And the "AS" used on the thumbnails themselves.
on (rollOver)
{
active = true;
}
on (rollOut)
{
active = false;
}
- on (rollOver)
- {
- active = true;
- }
- on (rollOut)
- {
- active = false;
- }
Obviously this code alone is not working well enough.
I can imagine something to do, but I don't know how to code this stuff very well.. I imagine that the thumbnails could each be assigned a label (or an array of thumbnails with one label?), and could then be checked every second by some fancy "AS" to see if they are truly the active thumbnail, and if not to do the "prevFrame" action.
Did that make sense?
Can somebody give me some guidance please?
Thank You for anything you can help with.
-RK