Hi all,
I’ve got a really weird problem with the loadMovie “function”. In fact, I have 4 swf but the load movie cmd works but a bit random.
You can go see the result at www.philipoux.com/new/ ( you go on Pourquoi, and then you choose one of the 4 category) so after 2 or 3 click it will load the wrong external swf and I don’t understand why.
My file is only on 1 frame and here’s my code (smaller than original because I delete what was working )
#include "mc_tween2.as"
philbrun.tween("_alpha", 100, 1.5, "linear");
quiquoi.tween("_x", 126, 1, "easeOutElastic", 1);
quiquoi.tween("_alpha", 100, 1, "linear", 1);
quiquoi.quoi.onRelease = quoi;
cat.strat.onRelease = strat;
cat.ident.onRelease = ident;
cat.corpo.onRelease = corpo;
cat.embal.onRelease = embal;
}
function quoi(){
quiquoi.tween("_alpha", 0, 0.5, "linear");
quiquoi.tween("_y", 2000, 0.1, "linear", 0.7);
masked.resizeTo(511, 200, 1, "linear", 0.5);
cat.tween("_x", 555.3, 1, "easeOutElastic",1.5);
cat.tween("_alpha", 100, 1, "linear",1.5);
}
function strat(){
cat.strat.tween("_y", -247, 0.5, "easeOutElastic",1);
cat.ident.tween("_y", 57, 0.5, "easeOutElastic",1);
cat.corpo.tween("_y", 114.1, 0.5, "easeOutElastic",1);
cat.embal.tween("_y", 165.3, 0.5, "easeOutElastic",1);
swfimport.alphaTo(0 , 0.3, "linear")
masked.slideTo( 0, 0, 1, "linear")
masked.resizeTo(511, Stage.height, 1, "linear")
cat.strat.onTweenComplete = function() {
loadMovie("grille1.swf", swfimport);
swfimport.alphaTo(100 , 0.3, "linear")
}
}
function ident(){
cat.strat.tween("_y", -247, 0.5, "easeOutElastic",1);
cat.ident.tween("_y", -198.9, 0.5, "easeOutElastic",1);
cat.corpo.tween("_y", 114.1, 0.5, "easeOutElastic",1);
cat.embal.tween("_y", 165.3, 0.5, "easeOutElastic",1);
swfimport.alphaTo(0 , 0.3, "linear")
masked.slideTo( 0, 0, 1, "linear")
masked.resizeTo(511, Stage.height, 1, "linear")
cat.ident.onTweenComplete = function () {
loadMovie("grille2.swf", swfimport);
swfimport.alphaTo(100 , 0.3, "linear")
}
}
function corpo(){
cat.strat.tween("_y", -247, 0.5, "easeOutElastic",1);
cat.ident.tween("_y", -198.9, 0.5, "easeOutElastic",1);
cat.corpo.tween("_y", -149, 0.5, "easeOutElastic",1);
cat.embal.tween("_y", 165.3, 0.5, "easeOutElastic",1);
swfimport.alphaTo(0 , 0.3, "linear")
masked.slideTo( 0, 0, 1, "linear")
masked.resizeTo(511, Stage.height, 1, "linear")
cat.corpo.onTweenComplete = function () {
loadMovie("grille3.swf", swfimport);
swfimport.alphaTo(100 , 0.3, "linear")
}
}
function embal(){
cat.strat.tween("_y", -247, 0.5, "easeOutElastic",1);
cat.ident.tween("_y", -198.9, 0.5, "easeOutElastic",1);
cat.corpo.tween("_y", -149, 0.5, "easeOutElastic",1);
cat.embal.tween("_y", -104.9, 0.5, "easeOutElastic",1);
swfimport.alphaTo(0 , 0.3, "linear")
masked.slideTo( 0, 0, 1, "linear")
masked.resizeTo(511, Stage.height, 1, "linear")
cat.embal.onTweenComplete = function () {
loadMovie("grille4.swf", swfimport);
swfimport.alphaTo(100 , 0.3, "linear")
}
}
stop();
thx for help