Detect prev. swf on click then load next!

Hi,:crying:

I have a file called “shuffle.swf” in a folder called lesson1. the sequence of files are as follows: 1.swf,2.swf,3.swf,4.swf,shuffle.swf,5.swf,shuffle, 6.swf…etc
the files are loaded using:
on (release) {
loadMovieNum (“2.swf”,0);

basically i want to use 1 shuffle file instead of 14, as there are 26 lessons, each containing 14 shuffles.

The shuffle file has a click at the end which means, it needs to know which file was loaded before, then based on that, which file in sequence to load next. There is a menu within the folder whereby at any given time they can **link to lets say 5.swf, when the shuffle is finished playing it needs to load 6.swf.

How would i go about doing this!

Please help!