This content has been marked as final. Show 6 replies
Just noticed that if you comment out the array then the skipping stops (I guess thats obvious as it really stops the whole script).
you're using the stars array to store swf name that you want to load AND linkage ids??? that makes no sense especially because you're using the attached movieclips as load targets. and starTarget is not defined so, that's a major problem.
use createEmptyMovieClip() instead of attachMovie() and assign the created movieclip to starTarget.
Not sure about Linkage IDs to be completely honest, could you point out where I'm using them?
From what I understood I was loading the array of SWFs then picking one at random and loading it into starTarget which is a movie clip on the same timeline. This is working as expected at the moment. which is why I don't get what is wrong. (The new attached code has had excess lines removed).
Why should I createEmptyMovieClip() rather than attach the movies to an exsisting clip? I guess it would be more elegant.
you're loading between 1 and 4 movieclips with your code depending upon k in each loop. if k is the same in each of the 4 loops, you'll load just one. if k is different in each loop, you'll load all 4 (but you'll only display the last one).
to load one of your swf's at random use:
Thanks that's much more sensible and actually I had a sudden realization the reason that the timeline was jumping was a piece of leftover script in one of the external swfs.
Also thanks for the explanation its given me a better understanding of what's going on.