Click to See Complete Forum and Search --> : Flash CS3 and JavaScript


CreativeMind
12-23-2007, 06:59 PM
Happy Hollidays everyone!

I have a question regarding Flash CS3 adding JavaScript everytime I add flash contents within the HTML page. What is the reason why Dreamweaver CS3 or Flash CS3 adding JavaScript? What is the function or purpose?

When I added the flash movie within my HTML page, I believe Flash CS3 added JavaScript coding within the HTML page AND external JavaScipt sheet called "AC_RunActiveContent", and it causes the flash movie not to display on the browser. I than took out all the junk JavaScript coding within the HTML page and it work just fine. I can now see my flash movie. I am new to Dreamweaver CS3 and Fash CS3.

I have attached the JavaScript file for you to look at. The file was created automatically either by Dreamweaver CS3 or Flash CS3.

Thanks!!

ryanbutler
01-01-2008, 03:07 PM
Easy...the active content JavaScript file is there to get around the "click here to activate" legal issues regarding the patent of Flash technology that Microsoft lost. You should always use an option similar to this so that people don't have to click the Flash object before interacting with it. DW CS3 inserts the JavaScript for you unless you publish the Flash file into HTML through Flash, which isn't the best method.

The movie file should still work as long as your upload and correctly reference the JavaScript file.

CreativeMind
01-15-2008, 06:50 PM
Thanks my friend for your help!!