×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    How to know hand fingure drag on button?

    How to we can know our fingure direction when drag over a movie clip or button in flash lite for s60 5th.
    Regards,

    Ravindra Suthar

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    4

    Re: How to know hand fingure drag on button?

    Let me rephrase that question. So you would like to know the direction where the mouse is going to or coming from?
    Like for example, if the mouse comes from the right or the left?

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    Re: How to know hand fingure drag on button?

    Hello there,

    Here is a very basic example of how to detect the direction of a touch and drag motion. I hope it helps.

    David

    Code:
    var pointDown:Number = 0;
    var pointUp:Number = 0;
    
    onMouseDown = function(){
    	pointUp = 0;
    	pointDown = _xmouse;
    }
    
    onMouseUp = function(){
    	pointUp = _xmouse;
    	
    	if(pointUp > pointDown){
    		trace("Left to right");
    		//user dragged to the right
    	}
    	
    	else if(pointUp < pointDown){
    		trace("Right to left");
    		//user dragged to the left
    	}
    	else{
    		trace("No Drag");
    		//user did not drag left or right
    	}
    }

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. disabled option button
    By silviuccia in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-31, 13:08
  3. Add a control (e.g. button) programmatically
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 21:05
  4. Nokia E62/E61 kill button
    By regis.melo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-14, 17:55
  5. command button problem with s60 phones
    By jonneymendoza in forum Mobile Java General
    Replies: 1
    Last Post: 2007-03-23, 13:28

Posting Permissions

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