PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Flash einbinden


Gast
2008-05-17, 19:43:18
Hi,

ich versuche gerade ein Panoramaflash in meine Seite einzubauen, der Code sieht folgendermaßen aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Rafz</title>
</head>
<body>
<p><div align="center">
<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="768" id="Rafz"
codebase="http://active.macromedia.com/flash9/cabs/swflash.cab#version=9,0,28,0">
<param name="movie" value="panoStudioViewer.swf" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="pano=Rafz.xml" />
<embed src="panoStudioViewer.swf" width="1024" height="768"
type="application/x-shockwave-flash" name="Rafz"
allowScriptAccess="always" allowNetworking="all" allowFullScreen="true"
FlashVars="pano=Rafz.xml"
pluginspage="http://www.macromedia.com/go/getflashplayer" >
</embed>
</object>
</div></p>
</body></html>

Nun muss ich ihn von den Pfaden her noch anpassen damit es geht:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Rafz</title>
</head>
<body>
<p><div align="center">
<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="768" id="Rafz"
codebase="http://active.macromedia.com/flash9/cabs/swflash.cab#version=9,0,28,0">
<param name="movie" value="images/stories/panoramas/Rafz/panoStudioViewer.swf" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="pano=Rafz.xml" />
<embed src="images/stories/panoramas/Rafz/panoStudioViewer.swf" width="1024" height="768"
type="application/x-shockwave-flash" name="Rafz"
allowScriptAccess="always" allowNetworking="all" allowFullScreen="true"
FlashVars="pano=Rafz.xml"
pluginspage="http://www.macromedia.com/go/getflashplayer" >
</embed>
</object>
</div></p>
</body></html>

So, nun zeigt es schon mal die Anwendung an, doch leider lädt diese nicht. Ich vermute das es an der Rafz.xml liegt, für die krieg ich es einfach nicht hin den Pfad anzupassen. geht das irgendwie?

Sephiroth
2008-05-17, 22:49:06
Liegt die Datei im selben Verzeichnis wie das SWF? Sonst Probier's mal mit einem absoluten Pfad und URL encoded.

Using FlashVars to pass variables to a SWF (http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417)

Gast
2008-05-18, 14:58:25
Ja, die .xml liegt im gleichen Verzeichnis. Aus deinem Link werde ich leider nicht ganz schlau.