all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

totalframes of an external swf


totalframes of an external swf PeterB NO[at]SPAM WebEx
4/15/2004 11:20:48 PM
flash actionscript:
Can I find out what the totalframes are of an external swf that I have loaded
into my "parent" movie?

I'm trying to create a progress indicator that plays the length of each new
external swf I load into my "parent" movie.

Can anyone help me out here?

Thanks!
Re: totalframes of an external swf kglad
4/17/2004 1:56:52 PM
if you used loadMovie() to load your external swf, reference the target movie
clip's _totalframes property AFTER loading has started. for example:

targetMC.loadMovie("yourswf.swf");
testI=setInterval(testF,100);
function testF(){
if(targetMC.getBytesLoaded()>0){
clearInterval(testI);
yourTotalFrames=targetMC._totalframes;
}
}

Re: totalframes of an external swf PeterB NO[at]SPAM WebEx
4/19/2004 7:43:08 PM
Re: totalframes of an external swf kglad
4/20/2004 12:52:59 AM
Re: totalframes of an external swf PeterB NO[at]SPAM WebEx
4/20/2004 3:25:09 AM
AddThis Social Bookmark Button