I would like to do a clock wipe transition between scenes in Flash and I would like to do it in script. I have looked at tons of tutorials by now trying to figure out how to do this. The best thing I have up till now is something like a (fairly wide) clock hand sweeping over the image on the stage. I set it as mask, so it’s a little like a radar, revealing only a little portion of the image beneath. What I want, though, is that sweeping motion with the protion that is revealed remaining revealed, so as to “draw” the mask over the top image.
I’m using the following script to rotate the mask:
time = new Date();
mil = time.getMilliseconds();
s = time.getSeconds();
rotat = s*6+(mil/(1000/6));
duplicateMovieClip("hole", "hole"+j, 1000);
setProperty("hole"+j, _x, 395.4);
setProperty("hole"+j, _y, 291.5);
name="hole"+j;
setProperty("hole"+j, _rotation, (rotat*10));
j is incremented every time the frame is entered. I kinda suspect that the “slice of pie” I attach as a mask doesn’t get bigger because I leave the frame after each through and when i enter the frame again the mask slice gets attached at the next rotation angle.
(I also tried using attachMovie instead of duplicateMovieClip, get the same effect, though, plus setmask() won’t work then for some reason and the incrementation of j does not work at all then.)
Any ideas as to how I could work around that? Or does anyone know of a tutorial out there, that does exactly that clock wipe kind of transition? I don’t need any more radar/analog clock tutorials.:tired:
Edit: attached the file as it is now to give you a better idea.