Answered
attachmovie twice.. it disapears.
I have two attachmovies on different frames. And above these
movies I have another "static" movie clip. I run this code first:
I want the static movie clip above everything else.
------------------------------
Frame1:
this.attachMovie(my_array[random_film], "movie1", -16368, {_x:424.5, _y:117});
---------------------------
This works the "static" movie clip is above this movieclip.. but on another frame later on I have this code:
-------------------------------------
Frame100:
this.attachMovie("pause", "movie1", -16368, {_x:424.5, _y:117});
function randRange(min, max)
{
var randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
var paustid = randRange(15,20);
-----------------------------------------------
------------------------------------------------
Frame:103
if(firstloop != 1)
{
pauseDuration = paustid*1000;
framesInLoop = 3;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime < pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else {
startTime = null;
}
}
}
-------------------------------------------------------
It loops for a few seconds and then it goes back to frame1
My problem is that the second movieclip won't load properly.. if I change the depth form -16368 to this.getNextHighestDepth() on both attachmovies it will load both movieclips but they will be above the static movieclip.. what's the deal here? How can I fix this?
I want the static movie clip above everything else.
------------------------------
Frame1:
this.attachMovie(my_array[random_film], "movie1", -16368, {_x:424.5, _y:117});
---------------------------
This works the "static" movie clip is above this movieclip.. but on another frame later on I have this code:
-------------------------------------
Frame100:
this.attachMovie("pause", "movie1", -16368, {_x:424.5, _y:117});
function randRange(min, max)
{
var randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
var paustid = randRange(15,20);
-----------------------------------------------
------------------------------------------------
Frame:103
if(firstloop != 1)
{
pauseDuration = paustid*1000;
framesInLoop = 3;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay (_currentframe-framesInLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime < pauseDuration) {
gotoAndPlay (_currentframe-framesInLoop);
} else {
startTime = null;
}
}
}
-------------------------------------------------------
It loops for a few seconds and then it goes back to frame1
My problem is that the second movieclip won't load properly.. if I change the depth form -16368 to this.getNextHighestDepth() on both attachmovies it will load both movieclips but they will be above the static movieclip.. what's the deal here? How can I fix this?
