Skip to content
luaye edited this page Mar 21, 2015 · 1 revision

#summary CommandLine cheats

==Get FlashVars== assuming your commandline scope is Stage or a DisplayObject {{{ $C.inspect(loaderInfo.parameters) }}}

==Reduce frame rate== assuming your commandline scope is Stage or a DisplayObject (replace 5 with your own choice) {{{ stage.frameRate = 5 }}}

==Log key presses== assuming your commandline scope is Stage or a DisplayObject {{{ stage.addEventListener(flash.events.KeyboardEvent.KEY_DOWN, $C.log) }}} Key presses while focused on command line will be ignored as it has Event.stopPropagation().

==Copy to clipboard== (replace $returned with a variable/string you want to save) {{{ flash.system.System.setClipboard($returned) }}}

==Maths==

  • Simple: 10-(5/2)
  • Assignment: stage.frameRate *= 1.5
  • Advanced: (90*Math.PI)/180 - _ 90 degree in radians _
  • Bitwise:2761 & 234
Clone this wiki locally