[jmsl] JMSL and Flash

jmsl at music.columbia.edu jmsl at music.columbia.edu
Mon Nov 17 20:02:09 EST 2008


Hi Jen
I improved the Java/JavaScript demo to include showing how to call 
JavaScript from Java
Same URL 
http://www.didkovsky.com/JavaMusicSystems/applets/JavaScriptApplet.html
You will need jaw.jar to compile this applet in Eclipse

So now what you need to do is figure out how to control Flash from 
JavaScript and all the glue will be there.

Thanks
Nick D


jmsl at music.columbia.edu wrote:
> Hi Jen
>
> I don't know much about JavaScript controlling Flash, but here's an 
> example of JavaScript sending values to Java.
> http://www.didkovsky.com/JavaMusicSystems/applets/JavaScriptApplet.html
> Study the HTML source of the page itself. The Applet itself is nothing 
> special; it just has a public method which JavaScript calls with
> <a href="javascript:document.MyApplet.setValue('Bob');">"Bob"</a>
>
> Important, the applet tag needs
> mayscript="mayscript"
>
> Thanks,
> Nick Didkovsky
>
> jmsl at music.columbia.edu wrote:
>> Greetings, JMSL-ers.
>>
>> I am trying to find a way to get a JMSL applet conversing with a Flash
>> game.  Ideally, actions in the Flash game influence aspects of the 
>> score in
>> JMSL on the fly.  Both are playing on a webpage in a browser (on the
>> internets!).  Has anyone done this before?  A brief search on Google 
>> and the
>> JMSL mailing list archives has not been helpful.
>>
>> I've heard that JavaScript may be helpful, but I am not versed in 
>> JavaScript
>> to know if that is the case.
>>
>> All advice and thoughts are appreciated!
>>
>>
>> Thank you,
>> Jen Grier
>> - - - - - - - - - - - - - -
>> http://jengrier.com
>> _______________________________________________
>> jmsl mailing list
>> jmsl at music.columbia.edu
>> http://music.columbia.edu/mailman/listinfo/jmsl
>>   
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl


More information about the jmsl mailing list