Is there a way to programmatically create laters? I'm a coffeescript noob :/
views = 
slider = (slides) -> # Create wrapper paginated = new Layer width: deviceWidth * slides, height: deviceHeight, x: 0 paginated.draggable.enabled = true paginated.draggable.speedY = 0
for i in [0...slides] # Create views view = new Layer width: deviceWidth, height: deviceHeight, backgroundColor: randomColor, x: slides * deviceWidth, superLayer: paginated views.push(view)
There would be other ways to create it, but I do it this way. :-)
i do it like Min-Sang Choi too
would it be possibile to assign different images (or imported layers) instead of "backgroundColor: randomColor"?
just add --> image: "images/image" + i + ".png" and you can loop through images, or you can loop through an array of images if the names are not consistent.