Comunidad de diseño web y desarrollo en internet online

menu flash carga diferentes paginas en iframe

Citar            
MensajeEscrito el 13 Nov 2009 06:47 pm
Quiero hacer una botonera en flash q toma los links de un xml. la botonera esta ubicado dentro de un iframe (a) y lo que quiero es que el vinculo se abra en otro iframe (c). ambos colocados en un html llamado index. Resulta que la botonera la compre y venia con su propio xml que detallo a continuación:

Código XML :

<?xml version="1.0" encoding="utf-8"?>
<menu>
   <globals      
      currentItem="1" scaleXY="1.5"
      fontSize="24" paddingBottom="0" paddingLeft="8" paddingRight="20" 
      positionX="1" positionY="200"        
   />
   <item fontColor="#efefef" fontColorOver="#FFFFFF" bgColor="#989898" bgColorOver="#ff0000">
      <title>Identidad</title>
      <method>navigateToURLs</method>
      <args>htmlquecargaeniframe.html, nombreiframe</args>
   </item>
   <item fontColor="#efefef" fontColorOver="#FFFFFF" bgColor="#989898" bgColorOver="#ff0000">
      <title>Impresos</title>
      <method>navigateToURLs</method>
      <args></args>
   </item>
   <item fontColor="#efefef" fontColorOver="#FFFFFF" bgColor="#989898" bgColorOver="#ff0000">
      <title>Publicidad</title>
      <method>navigateToURLs</method>
      <args></args>
   </item>
</menu>


bueno sucede que al momento de hacer click en el boton "identidad", este me carga la pagina entera y no dentro del iframe.
aca esta el codigo html de la pagina index donde se cargan los contenidos y la botonera menu

Código HTML :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>T A C O A L T O</title>
<style type="text/css">
<!--
body {
   background-color: #CCC;
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}
-->
</style></head>
<frameset cols="184,*" frameborder="NO" border="0" framespacing="0" rows="*"> 
<frame name="mainFrame" src="contenido.html"> 
<frame name="rightFrame" scrolling="NO" noresize src="menu.html"> 
</frameset>
<noframes> 
<body>
</body>
</noframes> 
</html>


y aca les dejo el action script de la botonera menu.

Código ActionScript :

package com.flashdo.flashblue
{
    import flash.display.*;
   import flash.events.*;
   import flash.net.*;
    import flash.utils.*;    
   import flash.text.*;

    dynamic public class Main extends MovieClip 
   {
      public function Main()
      {
         addEventListener(Event.ADDED_TO_STAGE,init);         
      }
      
      private function init(e:Event):void
      {
         removeEventListener(Event.ADDED_TO_STAGE,init);         
         //Stage noscale & align left
         stage.scaleMode = StageScaleMode.NO_SCALE;
         stage.align = StageAlign.TOP_LEFT;   
         //FlashVars
         var xmlUrl = "xml/menu.xml";
         var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
         if (paramObj["xmlUrl"]) {
            xmlUrl = paramObj["xmlUrl"];
         }
         //Use these lines to add menu to another flash project
         var menu:ScaleMenu = new ScaleMenu(this, xmlUrl);
         addChild(menu);
      }            
      
   }
}



bueno si alguien me pudiera dar una ayuda seria increible

gracias!!!!!!

Por julio valdes

2 de clabLevel



 

msie8
Citar            
MensajeEscrito el 14 Nov 2009 01:55 pm
En el code que pusiste no está la acción del botón, que supongo estará en medio de un script de cientos de líneas donde básicamente deberás modificar que en vez de hacer un navigateToURL llame a un script de JS que cargue esa URL en otro iframe, ya que si bien en teoría el segundo argumento de navigateToURL es el nombre del frame deonde lo quieres cargar, raramente funciona

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.