I can't get my flash onto my web page...

User 483565 Photo


Registered User
28 posts

I use ( Media Menu Producer )and FLV Producer to create flash video. When I use only the version FLV Producer and I use the video.flv .swf and .html everthing works just fine. I just copy the .html to VSD and bingo it all works. However when I use the software Media Menu Producer I copy & paste same same way in VSD I only get the blank page??? this creates .html -.swf - video.flv -.mmpcode.js and it creates a resource folder and inside it is the player.swf - mediamenu.xml and the video.flv..the producer also gives you the option GET CODE to copy to clipboard ( COPY FOR VIDEO ONLY ) OR ( COMPLETE HTML PAGE ). SEE BELOW THE 2 DIFFERENT CODES:

<!-- START MediaMenuProducer code -->
<script type="text/javascript" src="mmpcode.js"></script>
<noscript>
<p align="left">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="363" height="227" id="player" align="">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="resources/player.swf" />
<param name="quality" value="high" />
<param NAME=scale VALUE=noscale>
<param NAME=salign VALUE="LT">
<param NAME=FlashVars VALUE="xml_file=resources/mediamenu.xml">
<param name="bgcolor" value="#ffffff" />
<embed src="resources/player.swf" FlashVars="xml_file=resources/mediamenu.xml" quality="high" scale=noscale bgcolor="#ffffff" width="363" height="227" name="player" salign="lt" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
</noscript>
<!-- END MediaMenuProducer code -->






IT ALSO HAS OPTION TO GET CODE FOR ( COMPLETE HTML PAGE ) AND THAT READS :







<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<title>test</title>
<meta NAME="Author" CONTENT="">
<meta NAME="Keywords" CONTENT="">
<meta NAME="Description" CONTENT="">
</head>

<body>
<!-- START MediaMenuProducer code -->
<script type="text/javascript" src="mmpcode.js"></script>
<noscript>
<p align="left">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="363" height="227" id="player" align="">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="resources/player.swf" />
<param name="quality" value="high" />
<param NAME=scale VALUE=noscale>
<param NAME=salign VALUE="LT">
<param NAME=FlashVars VALUE="xml_file=resources/mediamenu.xml">
<param name="bgcolor" value="#ffffff" />
<embed src="resources/player.swf" FlashVars="xml_file=resources/mediamenu.xml" quality="high" scale=noscale bgcolor="#ffffff" width="363" height="227" name="player" salign="lt" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
</noscript>
<!-- END MediaMenuProducer code -->
</body>
</html>


THANKS
JOHN
User 132952 Photo


Ambassador
3,120 posts

If something doesn't load, it's usually because the files aren't where the html code expects them to be. I see in the code part of a line:
FlashVars="xml_file=resources/mediamenu.xml"
Unless that code is edited, you'll have to make sure you have a subfolder called "resources" with mediamenu.xml inside it.
This one too:
<param name="movie" value="resources/player.swf" />
Perhaps you could just upload the entire "resources" folder w/ DirectFTP.
User 479329 Photo


Trial User
6 posts

If you ever find out the problem with media menu producer I sure would like to know..? I cant get anything but a white screen also. I have messed with the code till I have become confused with it. So a little help would be appreciated.I am using front page 2003. Thanks. sharris49
User 463058 Photo


Ambassador
1,076 posts

Can you post a copy of the mmpcode.js? This should be generating the code seen by browsers when they have javascript turned on. Everything between the noscript tags is seen only by browsers with javascript turned off.

Try viewing the blank pages with javascript turned off to see if the video shows up.
User 479329 Photo


Trial User
6 posts

mmpcode.js Is this what your asking for ? Also now when I copy and paste the player into my page it looks like the wrong player is trying to load so I am afraid I am going to mess up my other players on my website if I dont solve this this problem....website is http://camdenupc.com/ Thanks..sharris49
document.write(' <p align="left">');
document.write(' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="635" height="341" id="player" align="">');
document.write(' <param name="allowScriptAccess" value="sameDomain" />');
document.write(' <param name="movie" value="http://domainname.com/players/player.swf" />');
document.write(' <param name="quality" value="high" />');
document.write(' <param NAME=scale VALUE=noscale> ');
document.write(' <param NAME=salign VALUE="LT">');
document.write(' <param NAME=FlashVars VALUE="xml_file=http://domainname.com/resources/mediamenu.xml">');
document.write(' <param name="bgcolor" value="#ffffff" />');
document.write(' <embed src="http://domainname.com/players/player.swf" FlashVars="xml_file=http://domainname.com/resources/mediamenu.xml" quality="high" scale=noscale bgcolor="#ffffff" width="635" height="341" name="player" salign="lt" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write(' </object>');
document.write(' </p>');
User 463058 Photo


Ambassador
1,076 posts

Yes, that's the code. The "http://domainname.com/" part is messing things up. I've got to check some other things here, but do all of your players have the same name, "player.swf"?
User 463058 Photo


Ambassador
1,076 posts

Replace the code inside the mmpcode.js file with this and see how it works.

document.write('<p align="left">');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="635" height="341" id="player" align="">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="resources/player.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="scale" value="noscale" /> ');
document.write('<param name="salign" value="LT" />');
document.write('<param name="FlashVars" value="xml_file=resources/mediamenu.xml" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="resources/player.swf" FlashVars="xml_file=resources/mediamenu.xml" quality="high" scale=noscale bgcolor="#ffffff" width="635" height="341" name="player" salign="lt" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</p>');
User 479329 Photo


Trial User
6 posts

I have camdenupcbanner.swf,test.swf,I have mp3 player builder that has player.swf,I have the slide show on front of website that is a swf player...thanks for your help..sharris49
User 463058 Photo


Ambassador
1,076 posts

sharris49 wrote:
Also now when I copy and paste the player into my page it looks like the wrong player is trying to load so I am afraid I am going to mess up my other players on my website...

Not to worry, your original .js file was telling the browser to look in the wrong place for player.swf. And since it's the only player.swf you have, it can't mess up the other players.

If the new .js code I gave you doesn't work, then you need to test the page in a browser with javascript turned off. If the player still doesn't work, then that means you don't have all your files in the correct locations.
User 479329 Photo


Trial User
6 posts

Your code worked perfectly...I really appreciate your help. Man without your help I was about ready to abandon this program...Again I say thanks..sharris49

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.