You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package { import flash.display.MovieClip; import flash.events.Event; public class GameOver extends MovieClip { public var main:Main; public function GameOver(main:Main) { this.main = main; addEventListener(Event.ADDED_TO_STAGE, addedToStage); } public function addedToStage(event:Event) { x = stage.stageWidth / 2; y = stage.stageHeight / 2; } } }