-
Notifications
You must be signed in to change notification settings - Fork 1
CommandLineCheats
baris edited this page Apr 14, 2022
·
1 revision
Assuming your commandline scope is Stage or a DisplayObject
$C.inspect(loaderInfo.parameters)
$C.inspect(get_loaderInfo().parameters)
Assuming your commandline scope is Stage or a DisplayObject (replace 5 with your own choice)
stage.frameRate = 5
stage.set_frameRate(5)
Assuming your commandline scope is Stage or a DisplayObject
(For some reason I don't understand why, it doesn't catch at all in the cpp target, and it gives a strange error in the html5 target.
If you solve the problem, you can open a pull request.)
stage.addEventListener(flash.events.KeyboardEvent.KEY_DOWN, $C.log);
stage.addEventListener(openfl.events.KeyboardEvent.KEY_DOWN, $C.log);
Key presses while focused on command line will be ignored as it has Event.stopPropagation().
(replace $returned with a variable/string you want to save)
flash.system.System.setClipboard($returned)
openfl.system.System.setClipboard($returned)
Simple: 10-(5/2)
Advanced: (90*Math.PI)/180 - _ 90 degree in radians _
Bitwise:2761 & 234