Warning: A non-numeric value encountered in /homepages/10/d677520614/htdocs/ryanragle.com/wp-content/themes/Divi/functions.php on line 5560

A lot of times people want to have nice fades for their buttons. However, a problem occurs if mid-way through a tween, you roll off and roll back on. You’ll find that it will fade in, and then disappear. What happens is the tween doesn’t know which one to finish and will inevitably give you a mixed bag of results, disappearing or appearing at what would seem random. How to fix the problem? Add this tid-bit of code to your fade in:
function fadeIn():void {
if (myTween != null) {
if (myTween.isPlaying) {
myTween = new Tween(previewBubble, “alpha”, Strong.easeIn, previewBubble.alpha, 1, .5, true);