[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] avoid loop in video SWF
From: |
Chris |
Subject: |
Re: [Swftools-common] avoid loop in video SWF |
Date: |
Thu, 4 Nov 2010 14:28:05 +0100 |
On Tue, 2 Nov 2010 16:55:33 -0700
Matthias Kramm <address@hidden> wrote:
> On Tue, Nov 02, 2010 at 09:26:14PM +0100, Pablo Rodr?guez <address@hidden>
> wrote:
> > .flash filename="video-slide.swf" bbox=841x545 version=7
> > .swf movie "video-snippet.swf"
> > .frame 1
> > .put movie
> > .stop
> > .action:
> > movie._x = (Stage.width - movie._width) / 2;
> > movie._y = (Stage.height - movie._height) / 2;
> > .end
> > .frame 2
> > .del movie
> > .end
> >
> > Is there a way here to prevent the loop in the embedding script?
Yes. Lose the .frame tags ( which get in a tangle ) and try it it this way:
#############################################################
.flash filename="video-slide.swf" bbox=841x545 version=7
.swf movie "video-snippet.swf"
.action:
movie._x = (Stage.width - movie._width) / 2;
movie._y = (Stage.height - movie._height) / 2;
_root.movie.onEnterFrame = function() {
if(movie._currentframe == movie._totalframes) {
movie.stop();
};
};
.end
.put movie
.end
###############################################################
Regards,
--
Chris