https://github.com/tpkn/goto-frame
Super-light frame tween for Adobe Animate
https://github.com/tpkn/goto-frame
Last synced: 3 months ago
JSON representation
Super-light frame tween for Adobe Animate
- Host: GitHub
- URL: https://github.com/tpkn/goto-frame
- Owner: tpkn
- License: mit
- Created: 2017-09-12T20:58:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T22:52:51.000Z (over 7 years ago)
- Last Synced: 2025-01-14T08:12:53.997Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Usage (code for Animate CC)
```javascript
gotoFrame(this.mc, 120);
```### If using within setInterval or tick handler
```javascript
var root = this;function update(){
gotoFrame(root.mc, 120, false);
}
createjs.Ticker.addEventListener("tick", stage);
```### Config
| Variable | Type | Description |
|-------------|:-------------:|-------------|
| mc | Object | - |
| end_frame | Number | - |
| tween | Number | If set `false`, each call of function would move timeline by one frame at a time |