Thema: Zanmantou-flashplayer über Javascript Steuern
Hallo zusammen
Da ich keine Lust mehr hatte mich mit
Quicktime rumzuschlagen hab ich beschlossen einen flashplayer auf meiner page zu installieren. Meine Wahl viel auf "Zanmantou" da er maximale Anpassungsfähigkeit verspricht und problemlos mit js steuerbar sein soll.
Hab mir also alle files geladen und das ganze ersteinmal in eine testpage integriert.
Der Player an sich funktioniert auch einbahnfrei ganz im Gegensatz
zur Javascript steuerung.
Zu eben dieser gibt es ein tut auf der Herstellerseite :
Zanmantou » Javascript API
Allerdings komm ich einfach nicht drauf was ich falsch gemacht habe.
Hier mein code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<title>Flashplayer</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="cache" />
<meta name="robots" content="index,follow" />
<meta name="description" content="Zanmantou Flashplayer Test" />
<meta name="revisit-after" content="5 days" />
<meta name="generator" content="voodoon.engine" />
<script type="text/javascript" src="javascriptmicroapi.js"></scrip>
<script type="text/javascript">
window.onload = init;
function init(){
document.zanmantou1 = new zanmantou("zanmantou1");
}
</script>
</head>
<body>
<object id="zanmantou1" type="application/x-shockwave-flash" data="zanmantou.swf" width="326" height="61">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="zanmantou.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#CA8540" />
<param name="FlashVars" value="config=config.xml&tracklist=tracklist.xml"/>
</object>
<a href="javascript:document.zanmantou1.start();">start</a><br />
<a href="javascript:document.zanmantou1.stop();">stop</a><br />Die Fehlerconsole sieht, wenn ich auf start bzw. stop drücke so aus:
Darraus schließe ich dass es hierran liegt:
<script type="text/javascript" src="javascriptmicroapi.js"></scrip>
<script type="text/javascript">
window.onload = init;
function init(){
document.zanmantou1 = new zanmantou("zanmantou1");
}
</script>Allerdings find ich den Fehler einfach nicht ![]()
Ich hoffe hier kann mir jemand weiterhelfen.
Zuletzt bearbeitet von Morgenes (26-07-2008 11:54:58)