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:
http://i35.tinypic.com/112hag6.jpg

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 neutral
Ich hoffe hier kann mir jemand weiterhelfen.

Zuletzt bearbeitet von Morgenes (26-07-2008 11:54:58)

2

Re: Zanmantou-flashplayer über Javascript Steuern

Probiers mal über die id des Elements:

<a href="#" onlick="document.getElementById('zanmantou1').start();">start</a><br />
<a href="#" onlick="document.getElementById('zanmantou1').stop();">stop</a><br />

evtl. klappt das?

_______________________________________________________________

/-/annes (j|g) ... http://www.jg-webdesign.de

Re: Zanmantou-flashplayer über Javascript Steuern

ok ich hab das Problem allein gelöst.
bzw. mit Hilfe des Entwicklers tongue
Hier der Link zum Thread:

http://forum.webmatze.de/comments.php?D … mment_6402

Da steht alles haarklein beschrieben fals jemand mal ein ähnliches problem haben sollte