I'm running into the same issue getting http://www.deitte.com/archives/2006/08/finally_updated.htm to work under an FDS compile on load situation and haven't had any success either.
What bothers me to a fair extent is that this solution (iFrame to render HTML proper since Flex / Flash uses such a lobotomized rendering engine) nullifies one of the main selling points of Flex that it doesn't require javascript to function completely. If the user turns off JS, AJAX is hosed. http://weblogs.macromedia.com/mesh/archives/2006/11/update_on_apoll.html gives me hope that there will be a way around that in the future, but it's pressing a larger client dependency down than just the Flash Player. Will let you know if I come up with anything, but from what I can tell because it's calling the .mxml directly, the index.template.html never creates the pure .html file which your .swf is relying on to handle the JS. --- In [email protected], "Oliver Merk" <[EMAIL PROTECTED]> wrote: > > I have a project that compiles on the server. I need to add some > custom Javascript to the HTML that's generated when I run the mxml > file (eg. http://localhost:8700/flex/MyApp.mxml). When I add the code > to /html-template/index.template.html file and run the application, I > don't see the JS when I view source. > > I've searched around and haven't heard of this problem before. Any > ideas how to get this to work? > > Thanks, > Oliver >

