hi,
This is my first post.
I am working in flash 8. Created a flash movie, there are more than 50 swf are loading randomly to a movie clip. Everything working fine except the Previous button in main movie. what i want is when clicked on PREV button previously loaded swf should load again.
i have placed this script in the first frame of the root.
movies = new Array(“images/flash/sp1.swf”, “images/flash/sp2.swf”, “images/flash/sp3.swf”, “images/flash/sp4.swf”, “images/flash/sp5.swf”, “images/flash/sp6.swf”, “images/flash/sp7.swf”, “images/flash/sp8.swf”, “images/flash/sp9.swf”, “images/flash/sp10.swf”, “images/flash/sp11.swf”,“images/flash/sp12.swf”, “images/flash/sp13.swf”, “images/flash/sp14.swf”, “images/flash/sp15.swf”, “images/flash/sp16.swf”, “images/flash/sp17.swf”, “images/flash/sp18.swf”, “images/flash/sp19.swf”, “images/flash/sp20.swf”, “images/flash/sp21.swf”, “images/flash/sp22.swf”, “images/flash/sp23.swf”, “images/flash/sp24.swf”, “images/flash/sp25.swf”, “images/flash/sp26.swf”, “images/flash/sp27.swf”, “images/flash/sp28.swf”, “images/flash/sp29.swf”, “images/flash/sp30.swf”, “images/flash/sp31.swf”, “images/flash/sp32.swf”, “images/flash/sp33.swf”, “images/flash/sp34.swf”, “images/flash/sp35.swf”, “images/flash/sp36.swf”, “images/flash/sp37.swf”, “images/flash/sp38.swf”, “images/flash/sp39.swf”, “images/flash/sp40.swf”, “images/flash/sp41.swf”, “images/flash/sp42.swf”, “images/flash/sp43.swf”,“images/flash/sp44.swf”, “images/flash/sp45.swf”, “images/flash/sp46.swf”, “images/flash/sp47.swf”, “images/flash/sp48.swf”, “images/flash/sp49.swf”, “images/flash/sp50.swf”, “images/flash/sp51.swf”, “images/flash/sp52.swf”, “images/flash/sp53.swf”, “images/flash/sp54.swf”, “images/flash/sp55.swf”, “images/flash/sp56.swf”, “images/flash/sp57.swf”, “images/flash/sp58.swf”, “images/flash/sp59.swf”, “images/flash/sp60.swf”, “images/flash/sp61.swf”, “images/flash/sp62.swf”, “images/flash/sp63.swf”, “images/flash/sp64.swf”, “images/flash/sp65.swf”, “images/flash/sp66.swf” , “images/flash/sp67.swf” );
beginAt = 0;
And Placed this script on blank movie clip to load swf into this MovieClip randomly
onClipEvent (enterFrame) {
_global.c = randomNumber;
if (_currentframe == _totalframes) {
randomNumber = random(_root.movies.length);
loadMovie(_root.movies[randomNumber], this);
}
}
I have passed a value by _global.currMovie=1 (this will change in each swf’s last frame)
Placed following scripts in next and prev buttons
(for prev)
on (press) {
_root.loadMovie(“sp”+int(currMovie)+".swf", movieTarget);
}
(for next)
on (press) {
loadMovie(“sp”+int(a+1)+".swf", movieTarget);
}
var ‘a’ is also passed from current loaded swf
Please help to solve the prev button problem , it is now not working properly.
thanks
manoj