First of all thank you for quick response,
Here are the codes.
This is 1st frame of _root
This one is inside the dot_mc movieclip symbol in the first framePHP Code:myBg._width = Stage.width;
dot_mc._x = 0;
var stageL:Object = new Object();
stageL.onResize = function() {
myBg._width = Stage.width;
dot_mc._x = 0;
}
Stage.addListener(stageL);
And for the last one this code piece is attached to the dotclip inside the dot_mc,PHP Code:dots = 75;
for (k=0; k<75; k++){
duplicateMovieClip(dotclip, "dotclip"+k, k);
}
Hope the hierarchy isn't complex for you...PHP Code:onClipEvent (load) {
//variables
width = Stage.width;
//random x,y, and alpha
this._alpha = 20+Math.random()*50;
//random x and y for flakes
this._x = -width+Math.random()*(3*width);
//speed and trigonometric value
rad = 0;
}
onClipEvent (enterFrame) {
width = Stage.width;
// horizontal movement
xmovement = 0;
this._x -= Math.cos(rad)+(xmovement-(width/2))/50;
// vertical movement
// remove clips when they misbehave (overstep boundaries)
if (this._x>(width+50)) {
this._x = -45;
}
if (this._x<-50) {
this._x = width+45;
}
}
Thank you very much,




Reply With Quote
