Flash-Javascript-JavaApplet Communication
with the new ExternalInterface class of Flash 8, Flash can communcation easily with Javascript.
This example shows how we can control an applet with Flash with the help of Javascript.
To view the above page, you may need to have some security settings of your Flash Player.
There are 2 functions in JS. They are responsible for calling functions in the applet. One function place the food randomly in the applet, while the other returns the number of living bugs when it is called.