Topic: How do I embed in .php?

Hi, I'm just trying to embed "simpleviewer.swf" on a .php site, and get "Galery XML not found" error.
I think i got to reffer the "galery.xml" file somewhere, but don't know where.

galeria.php is in the root folder
gallery.xml and simpleviewer.swf are in  root/galeria/


Here's the code:

<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','600','src','/galeria/simpleviewer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/galeria/simpleviewer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
  <param name="movie" value="/galeria/simpleviewer.swf" />
  <param name="quality" value="high" />
  <embed src="/galeria/simpleviewer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object>
</noscript>


Thanks!!!

I'm sorry for my bad english too, I'm from Argentina. LOL

Re: How do I embed in .php?

Do not use RunActiveContent, instead you should be using SWFObjects. For an example of how to embed in an existing page see FAQ #11

To specify the path to the XML add fo.addVariable("xmlDataPath", "gallerydata.xml"); before fo.write("flashcontent");
http://www.simpleviewer.net/simpleviewer/options.html

Mike Richards
SimpleViewer Support Team.

Re: How do I embed in .php?

Thanks Dude!

but still can't see anything, now shows "SimpleViewer requires JavaScript and the Flash Player. Get Flash." and can't understand why! I already got Flash player (I even re-download it)  :S :S :S

Re: How do I embed in .php?

What is the URL?

Mike Richards
SimpleViewer Support Team.

Re: How do I embed in .php?

www.alete.com.ar  hosted on 000webhost.com

http://alete.com.ar/galeria.php    is where the gallery should be.

1k times thanks!

Re: How do I embed in .php?

It looks like you are missing swfobject.js file, a copy of the file is included in the SimpleViewer download or you can get it from the SWFOjbect site.

Mike Richards
SimpleViewer Support Team.

Re: How do I embed in .php?

aaaarrrrggg... I don't know what I'm doing wrong!!! ... swfobject.js is there. I will start all over again.

Thanks again.