+1  A: 
conf = {'/js/AC_RunActiveContent.js':
    {'tools.staticfile.on': True,
     'tools.staticfile.filename':
         os.path.join(current_dir, 'data', 'scripts', 'AC_RunActiveContent.js')}}

And later

<script src="AC_RunActiveContent.js" language="javascript"></script>

My bet is the latter produces a 404. Try changing the line to:

<script src="/js/AC_RunActiveContent.js" language="javascript"></script>

Oh, and also your HTML could use a <HEAD> element.

ddaa
Thanks for your answer. The javascript is working now. I ran into another problem. The graph is not displayed. I only see a grey box on the page. Should I also put the XML file and the SWF file in the conf?
IezyBoy
I do not know anything Flash gadgets. Read the documentation, and try and debug it yourself. It seem plausible you need to serve the xml configuration from your server as well.
ddaa