Skip to main content
rjoshicool
Inspiring
October 8, 2011
Question

Touch scroll text area in Flex Mobile

  • October 8, 2011
  • 1 reply
  • 1410 views

I have a text area which I need to scroll on touch and move. How can I do that? I tried using the Scroller component but didn't work

This topic has been closed for replies.

1 reply

October 9, 2011

You can convert that text into a movie clip and then use startDrag and stopDrag so they user can move it freely, works really well and smooth for me. Just be sure to limit the scroll area with a bounds rectangle and you can also use a mask over the whole thing if you are not trying to have it fill the whole screen.

rjoshicool
Inspiring
October 9, 2011

Not like that. I actually need to scrol the content on mobile device using touch and swipe gesture just like we have on mobile apps. I think scroller component does that but it is not able to scroll the images in it.

October 10, 2011

I was able to create an effect that is similar to the iOS home screen where you scroll from one panel of icons to the next left to right and back and forth with start and stopDrag functions, don't think of it as moving an object on the stage, think of it as moving through a large movie clip in a confined screen space which in turn ends up being scrolling, unless I misunderstand you. Do you have an example of what you are trying to achieve?