[osflash] An Aflax Javaflash Integration Demo
paul at aflax.org
Tue Dec 6 14:55:51 EST 2005
I'm trying to build your project, but it can't find nspr-4.6 when I
configure. I've placed that in my dir structure, but not sure how to tell
configure how to find it. Any hints?
From: osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org] On
Behalf Of Steven Gong
Sent: Tuesday, December 06, 2005 12:12 AM
To: wonder-javaflash at googlegroups.com; Open Source Flash Mailing List
Subject: [osflash] An Aflax Javaflash Integration Demo
I have just made an interesting Aflax <http://www.aflax.org/> Javaflash
<http://dctc.sjtu.edu.cn:81/wonder/wiki/Javaflash> integration demo. Thanks
to the power of Rhino, I didn't do any extra work to enable this. :-)
The demo is on the trunk in
Some modifications to Aflax are needed to in order to make it work in
Firstly, the original Aflax library 0.33 uses 'callback' parameter in url to
decide the callback but it does not work locally, so we sticked the callback
to 'main'. This needs to modify aflax.as and we have provided a modified
version of swf in
the diff of as in
Secondly, you need to modify the callback name in examples to 'main' which
in some cases was 'go'.
Finally, you need to copy aflax.js into $JAVAFLASH_HOME/misc
The main class needs one parameter for the location of your js file. For
example, the example 'drawing2' of Aflax has a js file 'drawing2.js'. You
need to copy the drawing2.js somewhere, modify it and set up the location of
it to the parameter.
You are done here. But that will be more. You can add Java calls to JS now.
NOTICE: Examples that use extra js libs and HTML DOM methods are not
supported in Javaflash and those examples may not work properly. If you want
to run the video example, you need to copy the flv file to a location and
modify the path in JS to be relative to the location of Aflax-JF.swf.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osflash