# Detect prev. swf on click then load next!

**URL:** https://forum.kirupa.com/t/detect-prev-swf-on-click-then-load-next/186162
**Category:** Uncategorized
**Created:** [April 19, 2006, 2:52pm UTC](https://forum.kirupa.com/t/detect-prev-swf-on-click-then-load-next/186162 "2006-04-19T14:52:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jamez](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jamez](https://forum.kirupa.com/u/jamez)
#### Post date: [April 19, 2006, 2:52pm UTC](https://forum.kirupa.com/t/detect-prev-swf-on-click-then-load-next/186162/1 "2006-04-19T14:52:04Z")

</div>

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!
