• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

AS2 Tween class snap-back problem. Please help!

Explorer ,
Oct 21, 2007 Oct 21, 2007

Copy link to clipboard

Copied

Have a look here: http://bernardkowalski.com/temp/tween/
Those are 5 MCs attached to a container MC. Mouse over and out for a bit and you'll see the problem. If you roll over a square and then out before it completes the tween, and then over again the alpha will fade to 20% as it should but then pop back to the initial value of 100%.

Does anyone understand why this is happening? Has anyone come up with a solution?

The AS for this example is attached.

Something I just noticed.
If you mouse "through" one of the squares and then wait 5 seconds (the duration of the out tween) and then mouse over the same square it will not pop back to 100%. If you however mouseover quicker it will pop. This leads me to believe there is some sort of timer running even though the tween is not.
TOPICS
ActionScript

Views

247

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2007 Oct 21, 2007

Copy link to clipboard

Copied

LATEST
tweenerOut is finishing after tweenerIn when you rollOver, rollOut and then (within 5 seconds) rollOver again.

to remedy, stop your tweenerOut in your rollOver handler. (you'll need to NOT make tweenerOut local to the onRollOut handler.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines