No, yo lo que he hecho es desde flash, pasar las variables a php entonces en php, y en php tengo esto:
Código :
<?php
extract($_POST);
$areaImpresion = '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Grupo L & A</title>
<style type="text/css">
<!--
body {
background-color: #9797FF;
}
.Estilo2 {
font-size: 18px;
font-weight: bold;
}
.Estilo5 {font-size: 16px}
.Estilo6 {font-size: 18px}
-->
</style></head>
<body onload="window.print()">
<table width="100%" border="0">
<tr>
<td width="65%" align="left" valign="top" bgcolor="#9797FF"><h1>Grupo L & A </h1></td>
<td width="300" align="right" valign="top" bgcolor="#9797FF"><img src="'.$foto.'" alt="Foto" width="300" height="290" longdesc="Foto de la vivienda"></td>
</tr>
<tr>
<td colspan="3" align="left"><table width="100%" border="0">
<tr>
<td align="left"><span class="Estilo2">Referencia de la vivienda: </span><span class="Estilo2">'.$referencia.'</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><table width="100%" border="0">
<tr>
<td align="left"><p class="Estilo2"><span class="Estilo6">Tipo de vivienda: .$tipocasa.</span></p>
</td>
<td width="6%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="left"><table width="100%" border="0">
<tr>
<td align="left"><span class="Estilo2">Descripción de la vivienda:</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="left"><table width="100%" border="0">
<tr>
<td align="left"><span class="Estilo5">'.$descripcion.'</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0">
<tr>
<td align="left"><span class="Estilo2">Precio: </span><span class="Estilo6">'.$precio.'</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0">
<tr>
<td align="left"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><table width="100%" border="0">
<tr>
<td align="left" class="Estilo2"><div align="right">Si desea visitar el sitio Web Pulse <a href="http://www.grupola.es" target="_blank">Aquí</a> </div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="21" colspan="3"> </td>
</tr>
</table>
</body>
</html>';
print_r ($areaImpresion);
echo "&respuesta=Ok"
?>
bueno la cuestion es la siguiente, que si abro el archivo php manualmente me funcioan vien pero claro donde estan las variables que deberian llegar de flash, no salen porque lo e abierto yo sin flas.
sin embargo si abro flash al apretar un boton manda todo a php, y funciona bien pero no me sale lo de imprimir. y creo que es porque realmente no habre el archivo php.