[FONT=Times New Roman][SIZE=3]Hi , [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I follow this tutorial about making a transition :[/SIZE][/FONT]
http://www.kirupa.com/developer/mx2004/transitions.htm
[FONT=Times New Roman][SIZE=3]Im trying to implement the same idea but with a MovieClipLoader class. I write a little example of what went wrong , here is the code , I attach fla that demonstrate it as well.[/SIZE][/FONT]
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
var isEndPlaying :Boolean = false; // turn into true when external movie end palying the outro
var midframe ; // gets the stil frame number
var currMovie;
mclL.onLoadProgress = function(target,loaded,total){
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function(){
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL)
mcl.loadClip("ext1.swf",holder);
currMovie = "ext1";
ext1_bt.onRelease = function(){
if (currMovie != "ext1") {
//disable any occurrance if the currunt movie is ext1
if (holder._currentframe >= holder.midframe) {
/* the external movie stop its intro animation on frame 15,this frame is stored in
var called midframe in the first frame of the external animation , here im cheacking
if the external movie was stop on from 15*/
currMovie = "ext1";
holder.play();
/* i think that my problem is here , this line orders to "ext2" which is the loaded
movie to play the rest of it, on the last frame i put a boolean that turn to "true"
indocating that the movie reach its last frame.*/
if(isEndPlaying==true){
/*the problem is that condition never happans becuase "isEndPlaying" should
turn "true" , but for some reason it doesnt.maybe it does but not on the right time.*/
mcl.loadClip("ext1.swf",holder);
}
}
}
}
ext2_bt.onRelease = function(){
if (currMovie != "ext2") {
//disable any occurrance if the currunt movie is ext1
if (holder._currentframe >= holder.midframe) {
/* the external movie stop its intro animation on frame 15,this frame is stored in
var called midframe in the first frame of the external animation , here im cheacking
if the external movie was stop on from 15*/
currMovie = "ext2";
holder.play();
/* i think that my problem is here , this line orders to "ext2" which is the loaded
movie to play the rest of it, on the last frame i put a boolean that turn to "true"
indocating that the movie reach its last frame.*/
if(isEndPlaying==true){
/*the problem is that condition never happans becuase "isEndPlaying" should
turn "true" , but for some reason it doesnt.maybe it does but not on the right time.*/
mcl.loadClip("ext2.swf",holder);
}
}
}
}
on the external movie there is a stop() action on frame 15 , and the boolean var that indiate the movie reach the end frame:
isEndPlaying = true;
[FONT=Times New Roman][SIZE=3]I just want to say that Im trying hard 4 days to figure it out myself , but it seems like it beyond my head , any help will be appreciated.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Thanks[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]S[/SIZE][/FONT]