home *** CD-ROM | disk | FTP | other *** search
- waitSeconds = 4;
- imageNumber = 2;
- time1 = getTimer();
- var cnt = 1;
- var p_cnt = 1;
- bgpic.setMask(mask);
- _root.onEnterFrame = function()
- {
- now1 = getTimer();
- if(now1 >= time1 + waitSeconds * 1000)
- {
- _root.calis = 1;
- time1 = getTimer();
- cnt++;
- bgpic.duplicateMovieClip("bgpic" + cnt,_root.getNextHighestDepth());
- mask.duplicateMovieClip("mask" + cnt,_root.getNextHighestDepth());
- _root["mask" + cnt]._x = 0;
- _root["mask" + cnt]._y = bgpic._y;
- _root["bgpic" + cnt]._x = 0;
- _root["bgpic" + cnt]._y = bgpic._y;
- if(p_cnt == imageNumber)
- {
- p_cnt = 0;
- i = cnt - 10;
- while(i < cnt - 1)
- {
- _root["mask" + i].removeMovieClip();
- _root["bgpic" + i].removeMovieClip();
- i++;
- }
- }
- p_cnt++;
- _root["bgpic" + cnt].attachMovie("p" + p_cnt,"p" + p_cnt,1);
- _root["bgpic" + cnt].setMask(_root["mask" + cnt]);
- }
- };
-