A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Touchscreen AS2

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    139

    Touchscreen AS2

    I've built a series of games that run in a visitors centre on a touchscreen.
    It's running on a windows 7 pc with a monitor which is touch sensitive.
    Everything works fine except for one game where the input refuses to work.
    There are 4 on screen buttons (up, down, left, right) which, when pressed, move a ball.

    The code is basically like this:
    Code:
    on(press){moveUp();}
    on(release){stopMove();}
    on(dragOut){stopMove();}
    Code:
    function moveUp (){
    	onEnterFrame = function(){
    		if(speedY >= -maxSpeed){
    			speedY -= speedRate;
    			}}}
    This works fine with a mouse, but on a touchscreen nothing happens.
    I'm wondering if the on(press) isn't working properly...
    Does anyone have any experience with this kind of thing?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    I've uploaded a simplified swf here to demonstrate the game...
    http://in-production.co.uk/erfGame3/game3.swf

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