|
|
Question : Flash 8 Movie Clips
|
|
I have a flash file I have been working on with the help of a couple people from this site. Everything was working fine until my boss changed his mind yet again. Right now we have a file that when a user mouses over a symbol the movie clip plays which is just an image that fades in and then fades out when the user mouses off.
What they would like now is for the clip to start playing the movie clips for 10 seconds and then move to the next one unless a user mouses over one of the symbols then it will play that symbol as it does now. So this action should repeat about 30 seconds of no activity.
Can anyone give any guidance on how to do this. Here is a copy of the file http://www.breakaway-marketing.com/swf/test2.fla
Thank you in advance
|
Answer : Flash 8 Movie Clips
|
|
add a new layer, add the following code to frame 1
function trailer() { if (whatdoyoudo._currentframe == wheredoyougo._currentframe && succed._currentframe == whoareyou._currentframe) { whatdoyoudo.gotoAndPlay(2); } else { if (whatdoyoudo._currentframe > 1 && whatdoyoudo._currentframe < 16) { whatdoyoudo.gotoAndPlay(16); wheredoyougo.gotoAndPlay(2); } if (wheredoyougo._currentframe > 1 && wheredoyougo._currentframe < 16) { wheredoyougo.gotoAndPlay(16); succed.gotoAndPlay(2); } if (succed._currentframe > 1 && succed._currentframe < 16) { succed.gotoAndPlay(16); whoareyou.gotoAndPlay(2); } if (whoareyou._currentframe > 1 && whoareyou._currentframe < 16) { whoareyou.gotoAndPlay(16); whatdoyoudo.gotoAndPlay(2); } } } setInterval(trailer,10000);
|
|
|
|