Please help, question on actionscript
I got to load a list of JPGs in a swf, for the code I'm currently using:
MovieClip1.loadMovie("S0001.JPG");
MovieClip1.loadMovie("S0002.JPG");
MovieClip1.loadMovie("S0003.JPG");
But in the real suitation, I need is to load JPGs in MovieClip1, and by pressing Button "Next","Next x2", "Previous" and "Previous x2", it will have an action.
i.e.
MovieClip1 -> loads S0001.JPG as default
After clicking "Next"
MovieClip1 -> loads S0002.JPG
After clicking "Next x2"
MovieClip1 -> loads S0004.JPG
After clicking "Previous"
MovieClip1 -> loads S0003.JPG
After clicking "Previous x2"
MovieClip1 -> loads S0001.JPG
and so on
How can I make the variable (S0001.JPG) split into "S"+"####"+".JPG" which the "####" can be a bigger or smaller number by a function in the button?
Please note that the list of JPGs must be in this format of naming, "S"+"####"+".JPG"
Please help!