On Tue, 2 Nov 2010 16:55:33 -0700 Matthias Kramm <[email protected]> wrote:
> On Tue, Nov 02, 2010 at 09:26:14PM +0100, Pablo Rodr?guez <[email protected]> > 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
