Frame 1
this._lockroot = true;
tellTarget ("") {
}
Frame 51
gotoAndPlay (1);
Symbol 5 MovieClip Frame 1
_root.nb_pieces = 30;
_root.speed = 50;
_root.amplitude = 10;
_root.nb_add = 0;
_root.step_add = 150;
(flash.external.ExternalInterface.call("sendCommand", "flashTrace", "toto" + this.flocon._parent, "ln"));// not popped
(pluie:action(this.flocon._parent, _root.nb_pieces, _root.speed, _root.amplitude, _root.nb_add, _root.step_add));// not popped
tellTarget ("") {
}
Symbol 5 MovieClip Frame 3
gotoAndPlay (2);
Symbol 20480 MovieClip [__Packages.ea_text] Frame 0
class ea_text
{
function ea_text () {
}
static function getCarNamed_(textPath, carNameP, num) {
return(textPath[carNameP + num]);
}
static function getNbCarsNamed_(textPath, carNameP) {
var _local4 = 0;
for ( ; _local4 < 1000 ; _local4++) {
if (getCarNamed_(textPath, carNameP, _local4) == null) {
return(_local4);
}
}
return(0);
}
static function hideCarsNamed_(textPath, carNameP) {
var _local4 = getNbCarsNamed_(textPath, carNameP);
var _local6 = 0;
for ( ; _local6 < _local4 ; _local6++) {
var _local5 = getCarNamed_(textPath, carNameP, _local6);
_local5._visible = false;
}
}
static function moveCarsNamed_(textPathP, carNameP, moveP, timerP, intervalP, spriteEndP) {
var _local8 = getNbCarsNamed_(textPathP, carNameP);
var _local9 = (_local8 * intervalP) + moveP[0];
if ((timerP == _local9) && (spriteEndP != null)) {
var _local10 = spriteEndP;
if (_local10 == "_root") {
_root.play();
} else {
spriteEndP.play();
}
}
if (timerP > _local9) {
return(undefined);
}
var _local11 = 0;
for ( ; _local11 < _local8 ; _local11++) {
moveNamed_(textPathP, carNameP, _local11, moveP, timerP, intervalP);
}
}
static function moveNamed_(textPathP, carNameP, numCarP, moveP, timerP, intervalP) {
var _local8 = getCarNamed_(textPathP, carNameP, numCarP);
var _local9 = timerP - (numCarP * intervalP);
if ((_local9 < 0) || (_local9 >= moveP[0])) {
return(undefined);
}
if (_local9 == 0) {
_local8._visible = true;
}
if (moveP[1] != "x") {
_local8._x = _local8._x + moveP[1][_local9];
}
if (moveP[2] != "x") {
_local8._y = _local8._y + moveP[2][_local9];
}
if (moveP[3] != "x") {
_local8._xscale = moveP[3][_local9];
}
if (moveP[4] != "x") {
_local8._yscale = moveP[4][_local9];
}
if (moveP[5] != "x") {
_local8._rotation = moveP[5][_local9];
}
if (moveP[6] != "x") {
_local8._alpha = moveP[6][_local9];
}
}
static function getCar_(textPath, num) {
return(textPath["car" + num]);
}
static function getNbCars_(textPath) {
var _local3 = 0;
for ( ; _local3 < 1000 ; _local3++) {
if (getCar_(textPath, _local3) == null) {
return(_local3);
}
}
return(0);
}
static function hideCars_(textPath) {
var _local3 = getNbCars_(textPath);
var _local5 = 0;
for ( ; _local5 < _local3 ; _local5++) {
var _local4 = getCar_(textPath, _local5);
_local4._visible = false;
}
}
static function moveCars_(textPathP, moveP, timerP, intervalP, spriteEndP) {
var _local7 = getNbCars_(textPathP);
var _local8 = (_local7 * intervalP) + moveP[0];
if ((timerP == _local8) && (spriteEndP != null)) {
_root.debug_text = ((((("timer=" + timerP) + " end =") + _local8) + " / spriteEnd='") + spriteEndP) + "'";
var _local9 = spriteEndP;
if (_local9 == "_root") {
_root.play();
} else {
spriteEndP.play();
}
}
if (timerP > _local8) {
return(undefined);
}
var _local10 = 0;
for ( ; _local10 < _local7 ; _local10++) {
move_(textPathP, _local10, moveP, timerP, intervalP);
}
}
static function move_(textPathP, numCarP, moveP, timerP, intervalP) {
var _local7 = getCar_(textPathP, numCarP);
var _local8 = timerP - (numCarP * intervalP);
if ((_local8 < 0) || (_local8 >= moveP[0])) {
return(undefined);
}
if (_local8 == 0) {
_local7._visible = true;
}
if (moveP[1] != "x") {
_local7._x = _local7._x + moveP[1][_local8];
}
if (moveP[2] != "x") {
_local7._y = _local7._y + moveP[2][_local8];
}
if (moveP[3] != "x") {
_local7._xscale = moveP[3][_local8];
}
if (moveP[4] != "x") {
_local7._yscale = moveP[4][_local8];
}
if (moveP[5] != "x") {
_local7._rotation = moveP[5][_local8];
}
if (moveP[6] != "x") {
_local7._alpha = moveP[6][_local8];
}
}
static function traceLn(textP) {
flash.external.ExternalInterface.call("sendCommand", "flashTrace", textP, "ln");
_root.messph = textP;
}
static function toNum(valTxt) {
if ((valTxt.substring(0, 1) == "0") && (valTxt.substring(0, 2) != "0x")) {
if (valTxt == "0") {
return(0);
}
return(toNum(valTxt.substring(1, valTxt.length)));
}
return(Number(valTxt));
}
static function createTextField(nameP, xP, yP, lgP, htP, mcP) {
mcP.createTextField(nameP, mcP.getNextHighestDepth(), xP, yP, lgP, htP);
}
static function message(textP, xP, yP, lgP, htP) {
var _local7 = (("message" + xP) + "x") + yP;
var _local8 = _root[_local7];
if (_local8 == null) {
_root.createTextField(_local7, _root.getNextHighestDepth(), xP, yP, lgP, htP);
_local8 = _root[_local7];
}
_local8.autoSize = true;
_local8.text = textP;
_local8.wordWrap = true;
_local8.type = "dynamic";
var _local9 = _local8.getTextFormat();
_local9.size = 30;
_local9.color = 255;
_local8.setTextFormat(_local9);
return(_local8);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20481 MovieClip [__Packages.pluie] Frame 0
class pluie
{
var mcParent;
function pluie (mcParentP, nb_PiecesP, vitesseP, amplP, nb_pieces_addedP, step_addP) {
var _local8 = mcParentP;
ea_text.traceLn((((("mcParent=" + _local8) + " ") + mcParentP._width) + " ") + mcParentP._height);
mcParent = mcParentP;
nb_Pieces = nb_PiecesP;
vitesseMax = vitesseP;
ampl = amplP;
if (nb_pieces_addedP > 0) {
nb_pieces_added = nb_pieces_addedP;
} else {
nb_pieces_added = nb_Pieces;
}
if (step_addP > 0) {
step_add = step_addP;
} else {
step_add = 1;
}
var _local9 = mcParent.flocon;
area_x = (-_local9._width) / 2;
ea_text.traceLn("area_x=" + area_x);
area_y = (-_local9._height) / 2;
area_lg = mcParent._width;
area_ht = mcParent._height;
mcParent.pluie = this;
mcParent.onEnterFrame = function () {
var _local2 = this.pluie;
_local2.next();
};
}
static function action(mcParentP, nb_PiecesP, vitesseP, amplP, nb_pieces_addedP, step_addP) {
var _local8 = new pluie(mcParentP, nb_PiecesP, vitesseP, amplP, nb_pieces_addedP, step_addP);
}
function add() {
if (nb_added_curr >= nb_Pieces) {
return(undefined);
}
if ((++step_add_curr) >= step_add) {
step_add_curr = 0;
}
if (step_add_curr != 0) {
return(undefined);
}
var _local5 = nb_added_curr + nb_pieces_added;
if (_local5 > nb_Pieces) {
_local5 = nb_Pieces;
}
var _local6 = nb_added_curr;
for ( ; _local6 < _local5 ; _local6++) {
mcParent.flocon.duplicateMovieClip("flocon" + _local6, 100 + _local6, null);
var _local2 = mcParent["flocon" + _local6];
_local2.pos_x = random(area_lg) + area_x;
_local2._x = _local2.pos_x;
_local2._y = area_y + random(area_ht);
_local2.dephasage = random(dephasage);
var _local3 = Math.random();
_local2.vitesse = ((_local3 * vitesseMax) / 100) + vitesseMin;
_local3 = 20 + (80 * _local3);
if (_local3 < 0) {
_local3 = -_local3;
}
_local2._alpha = _local3;
_local2._xscale = _local3;
_local2._yscale = _local3;
mcParent.flocon._visible = false;
}
nb_added_curr = _local5;
}
function next() {
add();
angle_rad = angle_rad + 0.1;
if (angle_rad > (2 * Math.PI)) {
angle_rad = 0;
}
var _local3 = 0;
for ( ; _local3 < nb_added_curr ; _local3++) {
var _local2 = mcParent["flocon" + _local3];
_local2._y = _local2._y + _local2.vitesse;
_local2._x = _local2.pos_x + (Math.cos(angle_rad + _local2.dephasage) * ampl);
if (vitesseMax >= 0) {
if (_local2._y > (area_ht + area_y)) {
_local2._y = area_y;
}
} else if (_local2._y < 0) {
_local2._y = area_ht + area_y;
}
}
}
function random(max) {
var _local3 = Math.random() * max;
return(Math.floor(_local3));
}
//ASSetPropFlags(_local1, null, 1);
var angle_rad = 0;
var area_x = 800;
var area_y = 800;
var area_lg = 800;
var area_ht = 600;
var dephasage = 30;
var nb_Pieces = 200;
var ampl = 0;
var vitesseMax = 100;
var vitesseMin = 0;
var nb_pieces_added = 2;
var step_add = 20;
var step_add_curr = -1;
var nb_added_curr = 0;
}