all groups > flash (macromedia) > april 2006 >
You're in the

flash (macromedia)

group:

Flash ActiveObject Extension problems


Re: Flash ActiveObject Extension problems philos314 NO[at]SPAM gmail.com
4/27/2006 2:27:45 PM
flash (macromedia):
Actually, this doesn't work. I believe that since the document.write
method removes the code in the target document and replaces it with the
stuff in the parameter the result is a page with just that code in it.
On a refresh, the activation will still be necessary.
Re: Flash ActiveObject Extension problems -->dan mode
4/27/2006 2:39:01 PM
Here is a simple way.
You need to do three things and I will give examples as follows.

1. all of the <object> tag must be taken out and put into a .js file and
placed within a function where you document.write the <object tag>
2. you must include that .js file in the header of the html where the swf
resided
3. call the js function from step 1


--Here is a sample of Step 1, save this file as commFile.js:

function commM()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="410" height="345">\n');
document.write('<param name="movie" value="/mySWF.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<embed src="/mySWF.swf" quality="high" +'"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="410" height="345"></embed>\n');
document.write('</object>\n');
}

--Here is a sample for Step 2, put this in the head of your html page:

<script src="commFile.js" type="text/javascript"></script>

--Here is a sample for Step 3, place this code on the spot of the page where
you want your flash to show up:

<script type="text/javascript">commM();</script>


That should be all you need.

--

Dan Mode
*Must Read* http://www.smithmediafusion.com/blog
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11

Re: Flash ActiveObject Extension problems -->dan mode
4/27/2006 5:02:10 PM
np

--


Dan Mode
*Must Read* http://www.smithmediafusion.com/blog
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11

[quoted text, click to view]

Flash ActiveObject Extension problems art_guy
4/27/2006 8:14:08 PM
Hi. I am using the Adobe/Macromedia Extension for this Eolas IE browser problem
that is discussed heavily in another thread (and all over flash and web dev
forums everywhere!). It seems to work well when there is only one Flash movie
on a page. I am not having any luck getting it to work with TWO or more Flash
movies on one page.

Does anyone have any advice? Am I supposed to go as far as creating duplicate
..js files with different filenames? And perhaps renaming some of the variables
in use??

~RB
Re: Flash ActiveObject Extension problems art_guy
4/27/2006 9:59:01 PM
Thanks.

I solved the problem. Turns out there were one or two spots where I forgot to change the "name" of the Flash movie or I made a typo.

ie, the portion that says: 'name', 'flash_name',

AddThis Social Bookmark Button