1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| monObjet = {hers:"thehour"};
//fonction qui détermine l'heure
monObjet2 = {video:"anim.attachVideo(file://bureau.anim carte.essais1.swf)"};
//ma vidéo
A1 = {hers:"thehour(_root.heure.getHours(>9;<13))"};
/*B1 = {hers:"thehour(_root.heure.getHours(>8;<12)"};
C1 = {hers:"thehour(_root.heure.getHours(>12;<14)"};
D1 = {hers:"thehour(_root.heure.getHours(>14;<19)"};
E1 = {hers:"thehour(_root.heure.getHours(>19;<21)"};
F1 = {hers:"thehour(_root.heure.getHours(>21;<6)"};*/
A2 = {video:"MovieClip.loadMovie(file://bureau.anim carte.essais1.swf)"};
Tableau = new Array (A1, B1, C1, D1, E1,F1);
Tableau2 = new Array (A2);
if (Tableau (A1)) {
var v=Tableau2[Math.round (Math.random() * (Tableau2(A2).length-1))];
var rec = Tableau2(A2)[v];
Tableau2(A2).splice (v, 1);
}
function vDo (v)
{
var v = Math.round (Math.random() * (Tableau2.length - 1));
var rec = Tableau2[v];
Tableau2.splice (v, 1);
return rec;
}
MovieClip.prototype.charge_image = function(vDo) {
conteneur = this.createEmptyMovieClip("conteneur", 100);
conteneur.loadMovie(v);
} |
Partager