开发者

Horizontal Scrolling of Images in Actionscript (Touch friendly)

开发者 https://www.devze.com 2023-02-15 15:35 出处:网络
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 shoul

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 s开发者_开发百科mall sketch

Horizontal Scrolling of Images in Actionscript (Touch friendly)

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消