Friday, January 2, 2009

DreamweaverCS4 AC_FL_RunContent Script Compatibility

The CS4 version of DW does not support or use AC_FL_RunActiveContent script for flash movies anymore. If you remember This script was used to stop the ActiveX hash box in Internet Explorer 6 and 7. This had not been nessisary for IE since an update in the first part of 2008.

If you have made pages with DW8.02 or CS3 and have the "Insert Browser Safe Script" option check then you have seen this script generated. When (or if) you transfer to the CS4 version of Dreamweaver and you work with the older web pages the flash movies will not update any changes you will make. This is caused by the fact that the AC_FL_RunActiveContent script actually creates and loads the flash movie for you from javascript and CS4 does not update the information in the script as it does in the object, so when you load the movie only the old information is loaded. There are 2 options to fix this issue:
  1. Remove the script by hand
  2. Modify Dreamweaver to update the scripting
We will start with option 1. When looking at the flash movie in "code" design you will notice the object is wrapped in noscript tags. This is used to tell the browser not to generate the information inside of these tag's. So the only thing generated by the browser is the content created by the AC_FL_RunActiveContent script above it. When you modify the object tag, dreamweaver use to automatically match the script above it. This is no longer done. To remove the javascript you must delete everything inside and including the script tag's al well as the noscript tag's so the browser will generate the movie content. This can be done on a site wide basis easily using dreamweavers find and replace utility. Once the scripting has been removed the object will be generated on it's own with all of the new or modified options applied.

Option 2 is much easier. If you shutdown dreamweaver first then take the files from:
%windir%:\Program Files\Macromedia\Dreamweaver 8\Configuration\ActiveContent\Converters
if you were working with DW8, or
%windir%:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\ActiveContent\Converters
if you were working with CS3 and put them in
%windir%:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\ActiveContent\Converters
When you start up dreamweaver and modify a flash movie the RunActiveContent script will be updated just like CS3 or DW8.02. There should be 6 files in the old DW folder:
  1. ActiveContent.js
  2. ActiveContent.xml
  3. ActiveX.htm
  4. ActiveX.js
  5. Adobe.htm
  6. Adobe.js
all 6 need to be moved and if the new folder has the file ActiveContent.xml already in it just override the new one.

This is only needed if you are making changes to pages originally made from older DW's with the browser safe script option enabled, it is not necessary for new aspx pages made because the RunActiveContent script is not generated. I have included a copy of the missing files.

Converters.rar The missing files

http://www.inetsupervisor.com/Support/default.htm “InetSupervisor SUPPORT”

http://www.inetsupervisor.com/Products/Default.htm “Quark Communications PRODUCTS”

http://www.inetsupervisor.com “InetSupervisor HOME”

Labels: , , ,

0 Comments:

Post a Comment

<< Home