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!!!!!!
