Adding 'log' and updating 'var' for ActionScript snippets.