My wife, though beautiful, has dubious musical tastes. She recently surpassed herself because she
couldn't get the children's nursery rhyme, Wiggly Woo, out of her head.
To add to her frustration I devised this quick and dirty flash movie.
Neither the graphics or the code are very elegant but this little movie is nevertheless
a simple demonstration
of using time delays, if/then/else/end if constructs and movieclip properties in Flash.
worm=1;
text=1;
setTimeInterval.call();
mc_Line10._visible= false;
function stopInterval() {
clearInterval(timeInterval);
if (worm == 1) {
mc_Wiggly.removeMovieClip();
mc_Wiggly.attachMovie("mc_Wiggly_raised","mc_Wiggly_raised",0);
worm --;
} else {
mc_Wiggly.removeMovieClip();
mc_Wiggly.attachMovie("mc_Wiggly_flat","mc_Wiggly_flat",0);
worm ++;
}
mc_Wiggly._x +=10;
if (text < 4) {
mc_Line1._x -= 200;
} else {
if(text < 7) {
mc_Line2._x -= 200;
} else {
if(text < 10) {
mc_Line3._x -= 200;
} else {
if(text < 13) {
mc_Line4._x -= 200;
} else {
if(text < 16) {
mc_Line5._x -= 200;
} else {
if (text < 19) {
mc_Line6._x -= 200;
} else {
if(text < 22) {
mc_Line7._x -= 200;
} else {
if (text < 25) {
mc_Line8._x -= 200;
} else {
if (text < 28) {
mc_Line9._x -= 200;
} else {
if (text < 31) {
// get rid of the rest and do big writing
mc_Line1._visible = false;
mc_Line2._visible = false;
mc_Line3._visible = false;
mc_Line4._visible = false;
mc_Line5._visible = false;
mc_Line6._visible = false;
mc_Line7._visible = false;
mc_Line8._visible = false;
mc_Line9._visible = false;
mc_Line10._visible = true;
} else {
if (text < 33) {
mc_Line10._width += 90;
mc_Line10._height += 30;
}
}
}
}
}
}
}
}
}
}
}
text ++;
setTimeInterval.call();
}
function setTimeInterval() {
timeInterval = setInterval(stopInterval, 1000);
}