[osflash] An Aflax Javaflash Integration Demo

Paul Colton paul at aflax.org
Tue Dec 6 14:55:51 EST 2005


Steven,

 

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?

 

Paul Colton

www.aflax.org <http://www.aflax.org/> 

 

  _____  

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

 

Hi all,
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
http://dctc.sjtu.edu.cn:81/svn/wonder/trunk/javaflash/src/java/sjtu/dctc/won
der/javaflash/demo/AflaxDemo.java 

Some modifications to Aflax are needed to in order to make it work in
Javaflash:

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
http://dctc.sjtu.edu.cn:81/svn/wonder/trunk/javaflash/misc/Aflax-JF.swf and
the diff of as in
http://dctc.sjtu.edu.cn:81/svn/wonder/trunk/javaflash/misc/aflax.as.diff

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.
Enjoy! ;-)

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.

-- 
Best Regards
Steven Gong 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20051206/b56b53ad/attachment.htm


More information about the osflash mailing list