Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/06/2011, 19:20
Avatar de badtron
badtron
 
Fecha de Ingreso: junio-2011
Mensajes: 5
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: Galeria flash xml en PHP

Hola 3rps, si es cierto, se me paso poner el código.

Esta es una parte del código del PHP principal, solo esta la cabecera donde va el flash, desde aquí llamo al swf. Este archivo se llama template.php

Código:
<? 
function template_cab() { 
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="40%"></td>
    <td height="10%"></td>
    <td width="40%"></td>
  </tr>
  <tr>
    <td style="background-image:url(images/bg_izq.gif); background-repeat:repeat-y; background-position:right;">&nbsp;</td>
    <td width="870">
	<!-- header page -->
	<table border="0" cellpadding='0' cellspacing='0' align='center' class="dim_area">
	  <tr>
        <!-- primer bloque NEGRO-->
		<td align="right" valign="middle" bgcolor="#FFFFFF">
         <table WIDTH=100% border="0" cellspacing="0" border="2">
        <tr bgcolor="#FFFFFF">
             <!-- logo izquierda-->
             <td bgcolor="FFFFFF" align="left"><img src="images/logo.jpg" width="150" height="120"></td>
             <td valign="bottom" align="right">
             <a href="contactenos.php" class="imformes"><img src="images/carta.png" width="32" height="18" border="0" align="middle">[email protected]</a><br>&nbsp;
             </td>
             
             <!-- menu derecha-->
             <!-- <td align="right"></td>-->
                </tr>

        </table>
        </td>
        </td>
        </tr>
      
	  <tr>
		<td>
       <div id="flashcontent">
        </div>
        <script type="text/javascript">
        var so = new SWFObject("swf/banner.swf", "Solpagos", "870", "300", "8", "#FFFFFF");
        so.addParam("quality", "high");
        so.addParam("play", "true");
        so.write("flashcontent");
        </script>
         </td>
      </tr>
      <!-- menu principal-->
      <tr>
      	<td>
        <img src="images/menu.gif" width="870" height="68">
         </td>
      </tr>
	  <tr>
		<td bgcolor="#FFFFFF"><img src="template/spacer.gif" width="1" height="20" border="0"></td>
      </tr>
    </table>
	<!-- fin header page FINAL DE LA CABECERA -->
<? 
} // fin func
Ylo que carga primero, mi index.php que es este :

Código:
<?php
include "header.cabfiles.php";
//include "aut_pagina_https.inc.php";

$page_title = "Pasarela de Pagos Solpagos - Acepta tarjetas de credito en peru";

include "header.inc.php";
/***************************/
template_cab();
template_contenido1();
	titulo_pagina("Solucion de pagos por internet en Perú"); // titulo de pagina
	include "index_contenido.php";
template_contenido2();
template_pie();
/***************************/
include "footer.inc.php";
?>
Y el XML es este:

Código:
<?xml version="1.0" encoding="utf-8"?>
<main 

	stageWidth=""
	stageHeight=""
	stageBgColor="ffffff"
	stageBgTransparency="100"
	
	imageWidth=""
	imageHeight=""
	imageTransitionType="auto"
	imageResize="none"
	imageAlign="TL"
	imageRandomDisplay="no"
	imageAutoPlay="yes"
	
	thumbnails="yes"
	thumbnailWidth="0"
	thumbnailHeight="0"
	thumbnailToThumbnailSpacing="3"
	thumbnailsArrangeHorizontal="yes"
	thumbnailsAutoHide="yes"
	thumbnailsMaskSize="0"
	thumbnailsScrollSpeed="95"
	thumbnailsAlign="BR"
	thumbnailsLeftSpace="0"
	thumbnailsRightSpace="90"
	thumbnailsTopSpace="0"
	thumbnailsBottomSpace="7"

	textEmbedFont="yes"
	textShadowTransparency="70"
	textShadowDistance="2"
	
	buttonAutoHide="yes"
	buttonBgColor="ffffff"
	buttonIconColor="000000"
	buttonAutoPosition="yes"
	
>


<!-- slide1  -->
<slide 
	image="banner_asset/image1.jpg"
	thumbnailText="1" 
	textTransitionType="2"
	textWidth="" 
	textAlign="BL" 
	textLeftSpace="45" 
	textRightSpace="0" 
	textTopSpace="" 
	textBottomSpace="30" 
	slideShowDelay="4"
	url="" target="_blank">
	<text font="2" leftMargin="" ><![CDATA[<b><font size="25" >SISTEMA PERUANO</font></b>]]></text>   
	<text font="1" leftMargin="" ><![CDATA[<font size="20"  color="#CFFAFC" >La solucion de pagos por Internet del Peru</font>]]></text></slide>
</main>
Cuando inserto el slideshow en una pagina html me corre normal, pero en la de PHP no me muestra las imágenes, parece que no se conecta al XML, ya que no cargan las imágenes, mas sí el swf.

Gracias
saludos