Hello
I found the following code within a tutorial on the Kirupa website showing how to draw a square using ActionScript but I was wondering if it would be possible to modify this so that each line is animated in turn to construct a square (similar to the mouseover effect on the www.fontsforflash.com website (right column ‘Showcase’ graphic)):
_root.createEmptyMovieClip(“holder”,1);
holder.lineStyle(1,0,100);
// This is half the width of the square
width=30;
// The center of the square is (150,150)
holder.moveTo(150-width,150-width);
holder.lineTo(150+width,150-width);
holder.lineTo(150+width,150+width);
holder.lineTo(150-width,150+width);
holder.lineTo(150-width,150-width);
Any suggestions would be appreciated.
Many thanks.
Jon