Skip to main content
Inspiring
July 27, 2011
Question

Quick Question... Please Help

  • July 27, 2011
  • 1 reply
  • 373 views

I want to create a gallery but on one scene, so the user would scroll down, like a web page i guess, so the images are basically on a endless page.. the scene would stop at the end of all the images.. any ideas on how to do this?

This topic has been closed for replies.

1 reply

July 28, 2011

Hmmm, you woud have to load images through script so this thing doesnt come to a total hault.

I dont know much but maybe you can write up a script that detects when your original image is leaving the stage or better yet the bottom portion of it is above 0 + stage.stageHeight and at that point you load a new symbol from the library that has the x of your original image + image height.

That was probably no help

Are you trying to have a filmstrip/slot machine type effect where it looks like the images are on a scroll and not just a flick event that hops to the next frame or back to the previous?

Inspiring
July 28, 2011

thank you for your reply, I'm not a expert in actionscript i have managed to do everything else in the app by myself with advice from forums, i believe i have the knowledge to make a picture gallery with a swipe motion to the left and right, but i want it to go down for some reason. Is there any other way you recommend doing a gallery? im not to fixed on the down motion gallery...

Thanks 

July 28, 2011

Well a really hacky way of doing it would be to have two a two image movie clip, two images stacked on top of each other, like my illustration below.

____

|img1

____

____

img2

____

When loaded you would only see img 1 on the screen, image two is below image 1 out of frame.

Then you added a swipe event and you can add any direction swipe, left, right, up and down, its in the code snippets section.

Limit it only to a an up swipe.

Then when the user swipes up the event is triggered and the movie clip housing the two images is set to play.

The play function plays through a quick timeline that moves image one up and off the screen and moves image 2 onto the stage.

And as your movie clip hits the final frame it tells the stage to go to frame 2 where you have the same thing you just had in frame one but now its image 2 on top of image 3

____

|img2

____

____

img3

____

You would also have to have a down swipe event which would then play a backwards movie of image two animating back to img 1.

Like I said this is a hacky way of doing it and I hope no real coders yell at me, but its easy and I guarantee it to work.

Let me know if you need me to explain it some more.