I’ve included this effect in one particular scene and I want it
to remain in that scene. Instead it remains there the whole time
after I click out that scene.
Im also very new at Flash, your help will be very much appreciated.
The code is :
onClipEvent (load) {
// movie width/height
height = 400;
width = 550;
// ------------------------//
// makes everything random //
// ------------------------//
this._x = Math.round(Math.random()*width);
this._y = Math.round(Math.random()*height);
var temp = this._alpha=Math.random()*100;
this._xscale = this._yscale=temp;
// setting initiaion position
cx = this._x;
cy = this._y;
}
onClipEvent (enterFrame) {
// causes the object to be offset
this._x = cx+(1+Math.random()*5);
this._y = cy+(1+Math.random()*5);
}
onClipEvent (load) {
}