ActionScript.Statement Manual     Reference     Scripting  
Scripting > Runtime Classes > ActionScript
ActionScript.Statement

static function Statement (formatString : String, params arguments : object[]) : void

Description

Emits a block of ActionScript code in the current method translating variable and field references to their ActionScript names.

JavaScript
import UnityEngine.Flash;

var v = 42;
ActionScript.Statement("trace({0})", v);

using UnityEngine.Flash;
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public int v = 42;
void Example() {
ActionScript.Statement("trace({0})", v);
}
}

import UnityEngine.Flash
import UnityEngine
import System.Collections

class example(MonoBehaviour):

public v as int = 42

def Example():
ActionScript.Statement('trace({0})', v)