View Full Version : Using Javascript to Place Flash Objects dynamically

10-25-2006, 05:05 PM
Ok, I'm not that good in Javascript, but I do use it to fix the IE Flash problem (document.write('<object ..... ) . My problem is, I am designing a dynamic page that calls the URL of a SWF file from a MySQL database to play the Flash movie (2 movies actually). Luckily, the movies will all be the same dimensions, so the Flash tags (object, embed, para...) should all be identical except for the src of the movie. Is there a way I can use PHP in Javascript to get the movie's URL into the js code? I don't need any help with the PHP or MySQL, but if anybody could help me with the js side of it I would really appreciate it. Thanks!