Skip to content

Instantly share code, notes, and snippets.

@davepagurek
Created June 30, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davepagurek/acf299a11c0d16c399a2 to your computer and use it in GitHub Desktop.
Save davepagurek/acf299a11c0d16c399a2 to your computer and use it in GitHub Desktop.
AVM bytecode
This line of actionscript:
swivelJob.duration = RecordingDuration.frameRange(2, swivelJob.duration.params[1]);
...is this in bytecode:
getlocal0
pushscope
findpropstrict swivelJob //nameIndex = 7
getproperty swivelJob //nameIndex = 7
findpropstrict RecordingDuration //nameIndex = 9
getproperty RecordingDuration //nameIndex = 9
pushbyte 2
findpropstrict swivelJob //nameIndex = 7
getproperty swivelJob //nameIndex = 7
getproperty duration //nameIndex = 8
getproperty params //nameIndex = 11
pushbyte 1
getproperty null //nameIndex = 12
callproperty frameRange (2) //nameIndex = 10
dup
setlocal2
setproperty duration //nameIndex = 8
getlocal2
kill 2
coerce_a
setlocal1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment