Skip to content

Commit

Permalink
Layers and Keyframes accessible
Browse files Browse the repository at this point in the history
Can access layers and keyframes from movies.
  • Loading branch information
SavedByZero committed Jul 20, 2015
1 parent 4b590cd commit 65d565a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions com/michaelgreenhut/openflump/FlumpMovie.hx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class FlumpMovie extends Sprite
_layers = new Array<Layer>();
}

public function layers():Array<Layer>
{
return _layers;
}

public function clone():FlumpMovie
{
var fm:FlumpMovie = new FlumpMovie();
Expand Down
5 changes: 5 additions & 0 deletions com/michaelgreenhut/openflump/Layer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class Layer
_containsImage = kf.getRef();
}

public function keyFrames():Array<Keyframe>
{
return _keyframes;
}

public function back():Bool
{
if (_index >= 0)
Expand Down

0 comments on commit 65d565a

Please sign in to comment.