all groups > flash (macromedia) > october 2007 >
You're in the

flash (macromedia)

group:

Active Content - a different approach



Active Content - a different approach killebrew3d
10/30/2007 8:42:28 PM
flash (macromedia): I've looked around the forums and the internet and have found some javascript
code examples on how to get around the old Active Content problem where you
have to click to activate the Flash file. But I don't see anything I recognize.
I'm fairly new to Flash, and the way I posted these swf to a website before
was to insert some goofy old code that everyone used before this active content
headache.

Part of theat old code simply had an obvious place to put the location and
file name of the swf in there. So all I did each time was copy the code and
paste in the name of my file and the different http//: location I was hosting
it at.
This is important because I have access to store a file on my company site
and to mess about on the webpage using HTML through a silly little
dashboard-type deal they allow us to use - but I don't have the ability to
store all of the wbpage content in the same place. I have to host some of it
somehwere else.

But with all the new javascript code examples, I don't see where to insert the
file name AND the location of the outside location where I'm hosting it.
There's no simple "http://" to replace. I tried it anyway and nothing happened.
I suspect that the swf file has to be saved in the same file folder on the
server as the page you want it to appear on, if that makes sense.
In other words, am I correct in assuming that by using a back-end HTMl editor
on the site and hosting the actual swf file in a totally different location
that this javascript method probably won't work?

I've got no problems in Dreamweaver on my own personal website, but I don't
have access to change the webpage on the company site on that type of scale. I
can only much about with the HTML.

Looking at the source code of the company webpage it does appear that someone
has put in the script for the javascript deal to be activated.
Re: Active Content - a different approach killebrew3d
10/30/2007 8:44:38 PM
Here's the old code:
<center>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"


codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,0,0"

width="545.4" height="59" id="worldtime" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://images.blahblahblah.com/myFlashfile.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://images.blahblahblah.com/myFlashfile.swf" quality="high"
bgcolor="#ffffff"

width="545.4" height="59" name="worldtime" align="middle"
allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />


All I ever do is replace the "http://images.blahblahblah.com/myFlashfile.swf"
with wherever the Flash file lives when I use the code again.


I'm not sure how to translate this into any of the javascript examples.
AddThis Social Bookmark Button