Closed kburke3 closed 6 years ago
You can add a frame script inside of animate, for instance:
this.emit('someEvent');
Then you can listen to the instance of your stage:
var scene = new PIXI.animate.Scene(300, 480, {
view: document.getElementById("stage"),
backgroundColor: 0xffffff,
antialias: true
});
scene.load(lib.MyStage, function(instance) {
instance.on('someEvent', function() {
console.log('event handled');
});
});
Excellent, thank you!!!!
Hello, Is it possible to dispatch Pixi Animate events from the Adobe Animate timeline? If so, how would I listen for them?
Thank you!