Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
This is the base animation object of an exported FLA.
SVGAnim(json, width, height, fps)
Class for a root animation. Takes the JSON data exported from flash custom platform plugins, as well as width, height, and frames per second as parameters.
var _anim = new SVGAnim(json, 550, 400, 24);
In the context of a framescript this refers to the current timeline's movieclip object. Children can be referenced by their instance name on this object.
The object containing all the exported movieclip references from the library.
var mcTimeline = _anim.linkage.myMcLinkageName;
Reference to the root movieclip of the animation.
The Snap.svg surface. For leveraging Snap.svg API's.
The resource manager. For access to assets.
MovieClip(timelineData, SnapSurface, resourceManager, name)
Class for movieclip. Can be initialized on the root animation instance. See generated output for example.
var myMC = new _anim.MovieClip(tl, _anim.s, _anim.resourceManager, name);
Play the current movieclip.
Stop the current movieclip.
Go to defined frame number or label and continue to play.
Go to defined frame number or label and stop.
Adds a child to the movieclip.
Snap element click handler forwarding
Snap element mouseover handler forwarding
Snap element mouseout handler forwarding
Snap element mousedown handler forwarding
Snap element mousemove handler forwarding
Reference to the Snap() element for the current movieclip. For providing easy access to manipulating movieclips with Snap.svg.