Problem with class ActionScript

I tried samples from Scripting Reference

When I playing scene I got an error:
InvalidOperationException: Operation is not valid due to the current state of the object
UnityEngine.Flash.ActionScript.Expression[Int32] (System.String formatString, System.Object[ ] arguments) (at C:/BuildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/Editor/UnityEngineFlash.cs:18)
example.Start () (at Assets/Scripts/example.js:7)

What’s wrong ?

I got mine working in java script… i was having the same problem as you (i googled my error and got directed to you) … I some how got it fixed it wit the help of a co-worker… mine looks like this…

#pragma strict
import UnityEngine.Flash;

public class ConnectionToFlash extends MonoBehaviour {
public var buttonOneMessage : GUIContent = new GUIContent(“Send Flash a Integer”);
public var count : int = 0;
public function SendToFlashScript() {
#if UNITY_FLASH
ActionScript.Import(“communication_code”);
#endif
}

public function OnGUI() {
if (GUI.Button(new Rect(10, 10, 200, 100), buttonOneMessage)){
#if UNITY_FLASH
count = ActionScript.Expression.(“test.testFn({0})”,count);
Debug.Log(count.ToString());
buttonOneMessage.text = "Send Flash a message: " + count.ToString();
#endif
}
}

------------ as --------------
package {

public class communication_code {

public static var saveInt:int =0;

public static function testFn(obj:int):int{
obj++;
saveInt = obj;
return obj;
}

}

}

}

I have this problem too. Re writing in javascript has Not sovled it I’m afraid. Were there some other changes?

Also having this problem.