Controlling Timeline of Multiple Canvas
i attempting create "player" using adobe animate cc html5 canvas / javascript.
ideally, various animate cc canvas "chapters" loaded onto/into "player" control timelines. canvas "player" container manipulate canvas "chapters" put onto/into it.
can me code to:
1) add multiple canvas onto/into initial canvas.
2) dynamically cycle through multiple canvas "chapters" using "next" , "prev" recognize when move onto next canvas "chapter"
right have code allow me manipulate animate cc canvas timeline, of canvas associated with, not canvas has been loaded onto/into it:
_root = this; // global handle root timeline event listeners this._maxpage = _root.timeline.duration - 1; // total pages // event handlers this.navprev = function() { var cur = _root.timeline.position; if (cur > 0) { _root.navtopage(cur - 1); } } this.navnext = function() { var cur = _root.timeline.position; if (cur < _root._maxpage) { _root.navtopage(cur + 1); } } // navigation this.navtopage = function(p) { // set visibility of nav buttons this.prev.visible = p > 1; this.next.visible = p < this._maxpage; // update page counter this.pagenum.text = "page " + p; // navigate this.gotoandstop(p); } // assign event listeners this.prev.addeventlistener("click", this.navprev); this.next.addeventlistener("click", this.navnext); // party started this.navtopage(1);
does explanation make sense? trying administer elearning courses using animate cc player , course content.
thank you,
eric
hi, i'm elearning developer too, , im making elearning player in animate cc. have done hask for, put here in post. contact me , can each other.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment