justin
justin

Reputation: 312

Horizontal Scrolling of Images in Actionscript (Touch friendly)

I am new to actionscript development and can't figure out where to start. Have mercy :) I am trying to create a picture gallery in Actionscript (Flex would also do, but no Flash). Basically, it should be a horizontal list of images with captions below the picture. It should be possible to scroll through the images on a touch enabled device -> no scrollbars

I have looked into ScrollViewport put don't know how to implement a basic version in pure Actionscript.! I have included a small sketch

enter image description here

I have seen alot of solutions with a scrollbar. But I want something like on iOS where you scroll with your finger through the images.

Thanks in advance!

Upvotes: 0

Views: 1122

Answers (1)

ThomasM
ThomasM

Reputation: 2677

First of all, why is Flex ok, but "Flash" isn't? Actionscript is just the language you use to control Flash objects...

That put aside, look into masking. I would create a movieclip that is wide enough to hold all of your images. I would mask that movieclip with a rectangle and then adjust the x position of the movieclip with the images.

Upvotes: 1

Related Questions