We Recommend

Building Websites with TYPO3 Building Websites with TYPO3
Follow a clear path through the power and complexity of TYPO3 to get started, and build your own TYPO3 website This book is a fast paced tutorial to creating a website using TYPO3. If you have never used TYPO3, or even any web content management system before, then you need not look further than this book as it walks you through each step to create your own TYPO3 site.


Posted By

Winkyboy on 09/09/08


Tagged

actionscript mouse repeat down hold


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

Winkyboy


Mousedown on actionscript button


Published in: ActionScript 


URL: http://www.actionscript.org/forums/showthread.php3?t=179427

Code for allowing users to hold the mouse button down on a movie clip (button) for a constant effect.

  1. myButton.onPress = function() {
  2. this.ButtonDown = true
  3. }
  4. myButton.onRelease = myButton.onDragOut = function() {
  5. this.ButtonDown = false
  6. }
  7. myButton.onEnterFrame = function() {
  8. if(this.ButtonDown) {
  9. //Move Carousel
  10. }
  11. }

Report this snippet 

You need to login to post a comment.