FlumpMovie constructor

FlumpMovie(
  1. FlumpLibrary flumpLibrary,
  2. String name
)

Implementation

FlumpMovie(FlumpLibrary flumpLibrary, String name) :
  _flumpLibrary = flumpLibrary,
  _flumpMovieData = flumpLibrary._getFlumpMovieData(name) {

  for(var flumpLayerData in _flumpMovieData.flumpLayerDatas) {
    var flashMovieLayer = _FlumpMovieLayer(_flumpLibrary, flumpLayerData);
    _flumpMovieLayers.add(flashMovieLayer);
  }

  _frames = _flumpMovieData.frames;
  _duration = _frames / _flumpLibrary._frameRate;
}