PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : .swf Film mit Bild abwechselnd abspielen



kalachnikov
11.04.2010, 16:47
Hallo,
ich habe folgendes vor. Ich habe einen kleinen Film in Flash (in .swf exportiert), der eine Länge von 17s hat. Nachdem der Film zuende gelaufen ist, möchte ich also nachdem die 17s des Films vergangen sind, ein Bild (.png) einsetzten, dass mindestens 10s vordergründig stehen soll, bis dann der Film wieder von neugestartet wird.
Hier mal mein geschriebenes Code:



var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash']) ? navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin : 0;
if (plugin) {
var words = navigator.plugins['Shockwave Flash'].description.split(' ');
for (i = 0; i < words.length; i++) {
if (isNaN(parseInt(words[i]))) {
continue;
}
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf('MSIE') >=0 && (navigator.appVersion.indexOf('Win') != -1)) {
document.write('<script type="text\/vbscript" language="VBScript" charset="iso-8859-1">\n');
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('<\/script>\n');
}
if (MM_FlashCanPlay) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,0,0" id="tx_flashpageheader_pi1" width="257" height="145" align="left">\n');
document.write('<param name="loop" value="true">');
document.write('<param name="menu" value="false">');
document.write('<param name="quality" value="best">');
document.write('<param name="scale" value="noscale">');
document.write('<param name="bgcolor" value="#FFFFFF">');
document.write('<param name="swliveconnect" value="false">');
document.write('<param name="FlashVars" value="xmlPageId=35&xmlPageType=10000&xmlPagePath=/">');
document.write('<param name="movie" value="images/logo_1.swf">');
document.write('<embed src="images/logo_1.swf" FlashVars="xmlPageId=35&xmlPageType=10000&xmlPagePath=/" swliveconnect="false" loop="true" menu="false" quality="best" scale="noscale" bgcolor="#FFFFFF" width="257" height="145" name="tx_flashpageheader_pi1" align="top" type="application\/x-shockwave-flash" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer">\n');
document.write('<\/embed>\n');
document.write('<\/object>\n');
}
else {
document.write('<img src="images/swfbild.png" width="257" height="145" border="0" alt="" title="" />');
}