bonjour,
je ne peux malheureusement pas donner l'adresse de mon site web sur le forum parce qu'après mon post sera le premier referencement google...
mais si qq1 peut m'aider à partir du code ce serait super :-)
loader:frame 1.
var down=""
trace("a")
this.onEnterFrame = function() {
//trace(LB);
LB = getBytesLoaded();
TB = getBytesTotal();
PC = LB/TB*100;
down = Math.floor(LB/TB*100);
trace(down+"-"+_root._currentframe)
l.text = "Loading: "+down;
if (TB>4 && PC == 100) {
gotoAndStop(2)
}
};
stop()
frame 2:
(il faut savoir que sur frame 2 , he dragged all the movie clip outside the canvas, so the loading time has time to download all the videos (or movie clip))
var my_sound:Sound = new Sound();
my_sound.attachSound("logoff_id");
my_sound.setVolume(0);
function swap(param) {
trace("SWAP");
_root.my_sound.stop();
if (param != "cHome") {
my_sound.setVolume(100);
}
loader.attachMovie(param,"loaded",0);
}
swap("cHome");
stop();
volume;
chome (=movieclip)
enter_bt.onRelease = function() {
_root.swap("cArt");
};
buttons = [bt0, bt1, bt2, bt3, bt4, bt5, bt6, bt7, bt8, bt9, bt10,bt11];
function ht() {
for (i=0; i<buttons.length; i++) {
b = buttons[i];
if (b.hitTest(_root._xmouse, _root._ymouse, true)) {
//trace(hit);
b.gotoAndStop(2);
} else {
b.gotoAndStop(1);
}
}
}
htin = setInterval(ht, 100);
merci !
tochibaba