swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Linking or calling other swf files...SOLVED


From: fred . schnittke
Subject: Re: [Swftools-common] Linking or calling other swf files...SOLVED
Date: Tue, 16 Feb 2010 08:30:09 -0500


Thanks Chris for your help.

I've also found another way to acomplish what I'm trying to do using action script:


.flash filename="cxform.swf" bbox=1920x1080 fps=50

    .action:
      var swfs = ["1.swf", "2.swf", "3.swf"];
      var currentMovie = 0;
      _root.seed = 10;
      _root.createEmptyMovieClip("clip",0);

      _root.clip.loadMovie(swfs[currentMovie]);
      _root.>

      function checkLoadFinish() {
      if ((_root.clip.getBytesTotal() > 4) && (_root.clip.getBytesLoaded() >= _root.clip.getBytesTotal())) {
      delete _root.onEnterFrame;
      _root.clip.>
      }
      }

      function checkPlayFinished() {
      if (this._currentframe == this._totalframes) {
      //this.stop();
      currentMovie = (currentMovie+1)%swfs.length; //goes from 0 to 2 and back to 0
      _root.clip.loadMovie(swfs[currentMovie]);
      delete this.onEnterFrame;
      _root.>
      }
      }
    .end
.end

Thanks once again...

 

Regards,

 

 

Fred Schnittke  MCSE, MCP,
Network Engineer

VETERINARY PURCHASING company limited
485 Queen Street West,
P.O. Box 1150,
St. Marys, Ontario,
N4X 1B7
519.284.1371 x252


reply via email to

[Prev in Thread] Current Thread [Next in Thread]