Seite 2 von 2

Re: swf-Datei abspielen innerhalg des PureBasic Programms

Verfasst: 20.12.2010 22:37
von Velindos
Hallo,
habe folgenden Stand der Sache. Rufe mit der Funktion meine Index_Start.html Seite auf:

Code: Alles auswählen

     URL$="C:\Index_Start.html"
     WebGadget(#myWork_Gadget, 5, 0, 494, 164, "C:\index.html", #PB_Image_Border)
Die Index Datei wir ordentlich angezeigt, wenn ich jedoch auf den Hotspot drücke, wird der swf player extern aufgerufen, obwohl wenn ich die Page aufrufe der Player in der Seite läuft.

Code: Alles auswählen

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<link rel=File-List href="index-Dateien/filelist.xml">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
b\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Leer</title>
<style>
<!--
 /* Formatdefinitionen */
ol
	{margin-top:0in;
	margin-bottom:0in;
	margin-left:.25in;}
ul
	{margin-top:0in;
	margin-bottom:0in;
	margin-left:.25in;}
@page
	{size:8.2673in 11.6923in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="4098" fill="f" fillcolor="white [7]"
  strokecolor="black [0]">
  <v:fill color="white [7]" color2="white [7]" on="f"/>
  <v:stroke color="black [0]" color2="white [7]">
   <o:left v:ext="view" color="black [0]" color2="white [7]"/>
   <o:top v:ext="view" color="black [0]" color2="white [7]"/>
   <o:right v:ext="view" color="black [0]" color2="white [7]"/>
   <o:bottom v:ext="view" color="black [0]" color2="white [7]"/>
   <o:column v:ext="view" color="black [0]" color2="white [7]"/>
  </v:stroke>
  <v:shadow color="#ccc [4]"/>
  <v:textbox inset="2.88pt,2.88pt,2.88pt,2.88pt"/>
  <o:colormenu v:ext="edit" fillcolor="blue [1]" strokecolor="black [0]"
   shadowcolor="#ccc [4]"/>
 </o:shapedefaults><o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body link="#0066FF" vlink="#6633CC" style='margin:0'>

<div style='position:absolute;width:5.1611in;height:1.6819in'>
<!--[if gte vml 1]><v:rect id="_x0000_s1034" href="file:///C:\mymovie.swf.swf"
 style='position:absolute;left:0;top:0;width:370.5pt;height:120pt;z-index:3;
 mso-wrap-distance-left:2.88pt;mso-wrap-distance-top:2.88pt;
 mso-wrap-distance-right:2.88pt;mso-wrap-distance-bottom:2.88pt' filled="f"
 fillcolor="white [7]" strokecolor="black [0]" o:cliptowrap="t">
 <v:fill color2="white [7]"/>
 <v:stroke color2="white [7]">
  <o:left v:ext="view" color="black [0]" color2="white [7]"/>
  <o:top v:ext="view" color="black [0]" color2="white [7]"/>
  <o:right v:ext="view" color="black [0]" color2="white [7]"/>
  <o:bottom v:ext="view" color="black [0]" color2="white [7]"/>
  <o:column v:ext="view" color="black [0]" color2="white [7]"/>
 </v:stroke>
 <v:shadow color="#ccc [4]"/>
 <v:path insetpenok="f"/>
 <v:textbox inset="2.88pt,2.88pt,2.88pt,2.88pt"/>
</v:rect><![endif]--><![if !vml]><span style='position:absolute;z-index:3;
left:-1px;top:-1px;width:496px;height:162px'><a href="file:///C:\mymovie.swf.swf"><img
border=0 width=496 height=162 src="index-Dateien/image298.gif" v:shapes="_x0000_s1034"></a></span><![endif]>
</div>

</body>

</html>
Das Problem liegt wahrscheinlich in der HTML Seite.

Gruss ... Velindos

Re: swf-Datei abspielen innerhalg des PureBasic Programms

Verfasst: 20.12.2010 23:06
von Kiffi
den (guten) Tipp von Kevin auf der Vorseite hast Du wahrscheinlich übersehen?

Code: Alles auswählen

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  WebGadget(0, 10, 10, 580, 280, "file://C:\mymovie.swf.swf")
  ; Note: if you want to use a local file, change last parameter to "file://" + path + filename
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Re: swf-Datei abspielen innerhalg des PureBasic Programms

Verfasst: 21.12.2010 09:36
von DarkDragon
Kevin hat geschrieben:hi,

es reicht, wenn man denn pfad der swf-datei mit setgadgettext() übergibt.

mfg
kevin
Das funktioniert anscheinend nicht bei jedem mit jeder Shockwave oder Flash version. Ich habe das auch lange Zeit so gemacht und nach einer Neuinstallation des Computers ging es trotz installiertem Flash und Shockwave Plugin nichtmehr und der Browser hat die Datei mit dem "Datei runterladen" Dialog behandelt.

Re: swf-Datei abspielen innerhalg des PureBasic Programms

Verfasst: 21.12.2010 09:37
von Velindos
Hallo,
mein jetiziger Stand ist, das ich den Shockwave Flash nicht direkt aufrufen kann, sondern über die Html Seite! Was dazu führt das ein neues Fenster ausserhalb meines Programms aufgerufen wird, möchte ich nicht!
Noch ein Problem ist das es den Shockwave Flash in 64Bit noch nicht gibt! Dann vergesse ich die Sache bis SW nachkommt!

Gruss ... Velindos