Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/06/2013, 13:44
ragde23fer
 
Fecha de Ingreso: octubre-2008
Mensajes: 268
Antigüedad: 15 años, 7 meses
Puntos: 3
Respuesta: Cambiar Iframe Hijo desde HTML q contiene al padre.

Cita:
Iniciado por maycolalvarez Ver Mensaje
por supuesto que es un link , los links provienen de HTML, no de actionscript.

para hacer lo que quieres puedes hacer uso de window.open en JS, pero como usas flash, debes de buscar que función es equivalente, porque no dudo que exista, por ejemplo consultando la documentación (http://help.adobe.com/en_US/AS2LCR/F...=00000564.html) veo que puedes aplicarlo en el 2do parámetro window de la función getURL
Amigo, te pasaste, gracias a ti, se soluciono el problema:

INDEX.HTML
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <script type="text/javascript" language="javascript">
  6. function abrir(){
  7.     window.open('Cambio21.html', 'Hijo');
  8. }
  9. </head>
  10.  
  11. <table width="100%" border="3" cellspacing="0" cellpadding="0">
  12.   <tr>
  13.     <td onclick="abrir();">Abrir</td>
  14.   </tr>
  15.   <tr>
  16.     <td><iframe name="Padre" id="Padre" src="Frame1.html" width="500" height="700"></iframe> </td>
  17.   </tr>
  18.   <tr>
  19.     <td>&nbsp;</td>
  20.   </tr>
  21. </body>
  22. </html>

FRAME1.HTML
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. </head>
  6.  
  7. Soy el principal<br />
  8. <iframe id="Hijo" name="Hijo" src="Frame2.html" width="450" height="500"></iframe>
  9. </body>
  10. </html>

FRAME2.HTML
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. </head>
  6.  
  7. </body>
  8. </html>

CAMBIO11.HTML
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. </head>
  6.  
  7. Cambio 11
  8. </body>
  9. </html>

CAMBIO21.HTML
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. </head>
  6.  
  7. Cambio 21
  8. </body>
  9. </html>


Gracias por el apoyo...

Saludos.