This is a blog about Flash by betaruce :-)

Calendar

June 2007
M T W T F S S
« May    
  1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

August 19, 2005

Flash-Javascript-JavaApplet Communication

Filed under: My Flash Programs, My Processing Programs — betaruce @ 1:07 am

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.

• • •

No Comments »

No comments yet.

Comments RSS • TrackBack URI

Leave a comment

Powered by: WordPress • Template by: Priss