A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: on press, action keeps going when held?

  1. #1
    light11.ca habboguy's Avatar
    Join Date
    Apr 2002
    Posts
    384

    on press, action keeps going when held?

    im using the code

    Code:
    on(press){
     content.scroll--;
    }
    on(keyPress "<Up>"){
     content.scroll--;
    }
    on(rollOver) {
    	content.scroll--;
    }
    To make my scroll bar go down. But you have to keep clicking it and it get annoying. Is there any way i can make it so you only have to hold it and it runs smooth? please help.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    code:
    on (press) {
    this.onEnterFrame = function() {
    content.scroll--;
    };
    }
    on (release) {
    delete this.onEnterFrame;
    }



    gparis

  3. #3
    light11.ca habboguy's Avatar
    Join Date
    Apr 2002
    Posts
    384
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center