-
Notifications
You must be signed in to change notification settings - Fork 3
Basics
baris edited this page Feb 21, 2022
·
4 revisions
var train:AnimateAtlasTile = new AnimateAtlasTile(animateTileAtlasSheet);
var frameNumber:Int = 30;
train.addFrameScript(frameNumber, function(){
trace("frame 30");
});
train.play();
var frameNumber:Int = 30;
train.gotoAndPlay(frameNumber);
train.stop();
var frameNumber:Int = 30;
train.gotoAndStop(frameNumber);
var wagon1:AnimateSymbol = train.getSymbolByName("wagon1");
var wagon1Door:AnimateSymbol = wagon1.getSymbolByName("door");
wagon1Door.gotoAndStop(50); //Close Door instantly without animation
var wagon1:AnimateSymbol = train.getSymbolByName("wagon1");
var wagon1Door:AnimateSymbol = wagon1.getSymbolByName("door");
wagon1Door.visible = false; //Make the door invisible
var wagon1:AnimateSymbol = train.getSymbolByName("wagon1");
var wagon1Door:AnimateSymbol = wagon1.getSymbolByName("door");
wagon1Door.addFrameScript(50, function(){
trace("door closed");
});