|
-
Knowing you're at the end?
Hey everyone!
Ok Im wondering something. Im attempting to make this simple photoalbum and everything is fine and dandy, I can do it for myself. But Im making it for my cousin and I want it to be as easy to use as possible. That is, all she has to do is drag a new picture into one of the catagories, seperated by folders, and it'll be updated.
Now this is how I did it. I simply made a photoalbum folder and created three sub folders inside it. For example lets say I made the sub folders squares, circles and random
For my idea to work, you have to name each picture contained inside the catagories like so: square1, square2 etc etc.
In flash I dragged on a loader component. Now for example, Ill use the square catagory. When you go to this catagory in my program, the loader automatically loads the picture square1.jpg on load.
I then created a next button. When you click next, the variable square is incremented by one. So for example, the next button would look like:
code:
on (release){
_root.square ++
_root.squareLoader.contentPath = "square/square"+_root.square+".JPG";
}
This all works and everything, since it'll go to the next picture in the catagory folder all the way to the last one.
Now heres my question, is there a way to first check if the picture is at the last picture?
So for example I had five square pictures. How would you find out if your on number five? Since this is for my cousin, I want her to be able to do is simply drag a new square picture into the folder and it'll be added. Because as it is now, you keep clicking the next button until it goes to the sixth square picture, which does not exsist - it needs to loop back to the first.
I hope you know what I mean and thanks for the help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|