• Draw the star using Polystar Tool

Change size of the star in different keyframes.


Below are the steps for creating a wand.

  • Draw Magic Wand in new layer.

  • Convert the Magic Wand into Movie Clip.
  • Right click the cursor movie clip, and insert the following script.

Mouse.hide();

cursor_mc.startDrag("true");

 


Creation of The Star Loop.

  • Create the Star, convert it into Movie Clip and call it "starAnimation".
  • Create Animation for the Star.
  • Resize the Star in last keyframe(15).

Create new layer in Scene 1. Name it Actions_star.

Actions for Star loop:

var maxStars = 16;
var stars = new Array();

function makeStar () {
newDepth = this.getNextHighestDepth();
stars.push(this.attachMovie("starAnimation", "star" + newDepth, newDepth));
stars[stars.length-1]._x = _xmouse;
stars[stars.length-1]._y = _ymouse;

if (stars.length > maxStars) {
this["star" + (newDepth - maxStars)].removeMovieClip();
stars.shift();
}
}

function shrinkStar () {
for (var i = 0; i < stars.length; i++) {
stars[i]._width -= 7;
stars[i]._height -= 8;
stars[i]._alpha -= 4;
}
}

setInterval(function () {
makeStar();
shrinkStar();
}, 50);

Pages: 1 | 2 | 3 | 4 | 5