I’m simply wondering how I would go about making a button fade out and fade in properly in Corona considering composer, here’s what I have:
local function fadePlayButtonIn( button, event ) print( "in" ) transition.fadeIn( button, { time=500, onComplete=fadePlayButtonOut } ) end local function fadePlayButtonOut( button, event ) print( "out" ) transition.fadeOut( button, { time=500, onComplete=fadePlayButtonIn } ) end fadePlayButtonOut( playButton )
With this code, it fades the button out and back in but it doesn’t repeat it once it has been faded back in. I have this code in the “function scene:show( event ) {}” composer function too…