Example:
Use the sample above to see how it works.
Controls
Use the next button to view the next image & the back button to view the previous image
Add the following code to Scene_1.
|
onEnterFrame() {
_root.imnumber=_root._currentframe; _root.totframe=_root._totalframes; } onFrame (1) { stop(); } onFrame (5) { stop(); } |
Now you need two dynamic text boxes, one called imnumber, this will show your image number. And one called totframe, this will show how many images there are.
Yo now need two buttons one called next and one called previous or back. Place these where you wish them to be, take a look at the layout on the example above for ideas.
On the next button add the following code.
|
on (release) {
if (this._currentframe == this._totalframes) { gotoSceneAndStop("",1); } else { nextFrameAndStop(); } } |
On the back or previous button place the following code.
|
on (release) {
if (this._currentframe == 1) { gotoSceneAndStop("",this._totalframes); } else { prevFrameAndStop(); } } |
Now import all the images you wish to use, 5 for now.
On each frame add a place effect from the add effects button.
Until you reach frame 5, thats it press Ctrl+T to test it out.


