// First build a cigarette track MC (name action), then build a MC (name yanction), drag the Jujun's MC (Action) and name Yan
// Place the following code in the first frame of the MC (name yanction).
i = 1;
// Set the variable
Oneterframe = function () {
// Call frame by frame
IF (i <= 20) {
i ;
DuplicateMovieClip ("Yan", "Yan" i, i);
// Copy the smoke
THIS ["" " i] ._ Yscale = random (50) 30;
// Set the y-axis ratio of the copied smoke.
} else {
i = 1;
}
}
// drag the MC (YanAction).