PDA

View Full Version : include AC_RunActiveContent.js when publishing


darth
01-04-2008, 03:33 PM
I copied and changed the default (Flash Only) html publish file but
when I publish my flash file, it doesnt create the AC_RunActiveContent.js file.
How can I get Flash to include AC_RunActiveContent.js file when publishing?

Here is the modified publish html I want to use (http://www.loovvool.ee/kaspar/DefaultCentered.html.zip)

atomic
01-04-2008, 04:07 PM
Much easier to use the SWFObject.js script...

http://blog.deconcept.com/swfobject/

But in both cases, the script is not created... It must be downlaoded and then uploaded to your server in the same directory/folder as your .swf & html...

For the AC_RunActiveContent.js script, you can download it here...

http://www.adobe.com/devnet/activecontent/articles/devletter.html

In any case, soon both of the workarounds won't be needed anymore...

http://blogs.msdn.com/ie/archive/2007/11/08/ie-automatic-component-activation-changes-to-ie-activex-update.aspx

darth
01-04-2008, 05:28 PM
I'm asking this because I'm trying to make presets that designers could use straight from Flash and with no manual copying.
However I doubt that Adobe will change the current publishing system even when IE gets updated.

atomic
01-05-2008, 04:01 AM
I'm saying the original Flash default .html doesn't create the AC_RunActiveContent.js file either...
You have to have it downloaded & stored somewhere, and must always upload it to the server along with the .swf & .html

droid42
03-12-2008, 07:28 PM
Hi Atomic and darth.

I followed the thread, but I think that Atomic does not understand the problem at hand.
Inside the HTML section of the publish panel, the choice of Template are what is being altered:

If I create a customized template and use that instead of "flash only" option, it will not generate the AC_RunActiveContent js file, while if I use the "flash only" template it does generate that file.

I did some experimenting:
I duplicated the Default.html file, changed the file name to "Default2.html"
Changed the very first line by adding " 2" to the end:
$TTFlash Only 2
This generates/downloads the AC_RunActiveContent.js to the same directory as the other published files end up in.
I then changed the name first line to
$TTFlash Only myTest
This does not generate the AC_RunActiveContent.js
Does anybody have any explanation what actually generates this AC_RunActiveContent.js file.
Thanks for any enlightenment.

atomic
03-12-2008, 07:45 PM
My point was simply, that the .js script (whether it be created or not when publishing...) had to be uploaded to the server along with the rest of the files...

darth
03-12-2008, 07:58 PM
Hi droid42 and thank you for your contribution!

That is exactly what I was trying to find out.
For now, I'm using swfobject 1.5 and it's quite ok.