in your java applet, or jsp or whatever, wrap the html code for the flash movie in a document.print line like so:
document.print("
type=\"application/x-shockwave-flash\"
width=\"2540\" height=\"100\">
");
You can use the other ways of embedding flash in HTML.
When you make a flash object, you can make the webpage as well, and you might just want to copy the HTML generated by flash, koolmoves, dreamweaver or whatever you're using.
Then, Before every quotation mark, you'd put a backslash, so java knows not to end the line.
but I'd skip out the java and just go for the HTML page. You can then put some jsp tags in the page or embed an applet if you need java for any reason.
you will choose 2 records. The html and swf document. in case you utilize Flash flow to Flash> document> post and choose html. it is going to generate the embed code for you plus the swf document. Edit the html and place the full physique of it in (without the physique tags) the place you prefer to comprise your flash. Then upload your html and the swf document and there you flow.