Skip to main content
Inspiring
March 26, 2012
Question

How to make a dynamic textbox scroll down/up for devices like iPhone/Android/iPad etc?

  • March 26, 2012
  • 1 reply
  • 1133 views

Problem: When doing anAPP to test it out in my smartphone devices. I tested it on my computer and it works fine. But in devices, im not able to scroll the textbox down/up because my devices dont have a scroll wheel to scroll up/down.

Assuming that im looking for something like this:

When I use my fingers to touch on the textbox and slide it upwards, the textbox will scroll down..

Thank you for your help.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 26, 2012

use the touchevents class.

ZainuuAuthor
Inspiring
March 26, 2012

Hi, thanks for your reply.

By using touchevents, how do I...

1) know that if my fingers is sliding up or down?

2) scroll the textbox up/down?

import flash.events.TouchEvent;

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

this.addEventListener(TouchEvent.TOUCH_BEGIN, touchBeginHandler);

this.addEventListener(TouchEvent.TOUCH_END, touchEndHandler);

function  touchBeginHandler(event:TouchEvent):void

{

}

function  touchEndHandler(event:TouchEvent):void

{

}