Skip navigation
Currently Being Moderated

Getting Object to Pulse/Blink Repeatedly On/Off

Jun 30, 2012 6:07 AM

Hi,

 

I am learning game type animations using a pong-style tutorial: http://as3gametuts.com/2011/03/19/pong-1/

 

Source FLA: https://www.box.com/shared/co3bn7aeey22ki6r22tf

 

Very nice tutorial!

 

For an eLearning lesson, I need to add a flashing/blinking/pulsing effect to the "ball" and need it to repeatedly flash/blink/pulse at a slower pulse (every 500 ms) than the pulsing that would be achieved by:

 

ball.visible = !ball.visible; (I also tried using setInterval with this visible=!visible and got too rapid a flashing, not able to get 500 ms).

 

Not sure how to achieve this? (Would prefer, if possible, to achieve this effect all by scripting in a single frame, rather than multiple frames.

 

Any help appreciated.

 

Regards,

 
Replies
  • Currently Being Moderated
    Jun 30, 2012 7:00 AM   in reply to saratogacoach

    You should show what you did for the setInterval attempt.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points