Flash
Now open Flash and import the two JavaScript classes from the Integration Kit.
import com.macromedia.javascript.JavaScriptProxy; import com.macromedia.javascript.JavaScriptSerializer;
Instantiate the JavaScriptProxy object and pass it two parameters. The first parameter is the local connection id that we already set in flashvars, and the second is the scope of your Flash file.
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);
At this point, you have the foundation code that you need to move forward with Flash.