hola Jorge,
el swf si se esta ejecutando en el navegador por defecto del usuario que vaya a utilizar el disco porque el disco es un portafolio
el index.html que carga el swf contiene este codigo
Código :
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Objetivo Comunicación</title>
<style>
body{ background:#000;}
#container{ margin:0 auto; /*border:#FFF solid 1px;*/ width:800px;}
</style>
</head>
<body>
<div id="container">
<object type="application/x-shockwave-flash" width="800" height="600">
<param name="movie" value="stockIdeas.swf" />
<param name="quality" value="high" />
<embed src="stockIdeas.swf" quality="high" width="800" height="600"></embed>
</object>
</div>
</body>
</html>
el codigo del swf es
Código ActionScript :
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
var cerebro:Cerebro = new Cerebro();
var fondoverde:FondoVerde = new FondoVerde();
var onn:On = new On();
var stockIdeas:StockIdeas = new StockIdeas();
var botonGrafico:BotonGrafico =new BotonGrafico();
var botonAudio:BotonAudio = new BotonAudio();
var botones:Botones = new Botones();
var tiempo:Timer=new Timer(500);
var tiempo2:Timer=new Timer(500);
cerebro.scaleX=2.5;
cerebro.scaleY=2.5;
cerebro.x = stage.stageWidth / 2;
cerebro.y = 350;
fondoverde.x = stage.stageWidth / 2;
fondoverde.y = 350;
fondoverde.visible=false;
stockIdeas.y=160;
stockIdeas.x = stage.stageWidth / 2;
botonGrafico.x = 85;
botonGrafico.y = 327,35;
botonAudio.x = 730;
botonAudio.y = 327,35;
onn.x=409;
onn.y=250;
onn.visible=false;
addChild(fondoverde);
addChild(cerebro);
addChild(onn);
tiempo.addEventListener(TimerEvent.TIMER, transcurre);
function transcurre(event:TimerEvent){
if(event.target.currentCount==0){
addChild(cerebro);
}else if(event.target.currentCount==1){
removeEventListener(Event.ENTER_FRAME, moviendo);
addChild(stockIdeas);
}else if(event.target.currentCount==2){
addChild(botonAudio);
addChild(botonGrafico);
tiempo.stop();
}
}
tiempo.start()//Se inicializa el timer
addEventListener(Event.ENTER_FRAME, moviendo);
function moviendo(event:Event) {
cerebro.scaleX-=0.1;
cerebro.scaleY-=0.1;
}
botonGrafico.addEventListener(MouseEvent.CLICK,pulsado);
botonGrafico.addEventListener(MouseEvent.MOUSE_OVER,over);
botonGrafico.addEventListener(MouseEvent.MOUSE_OUT,out);
botonAudio.addEventListener(MouseEvent.CLICK,pulsado);
botonAudio.addEventListener(MouseEvent.MOUSE_OVER,over);
botonAudio.addEventListener(MouseEvent.MOUSE_OUT,out);
function pulsado(e:MouseEvent):void{
navigateToURL(new URLRequest("archives/grafica/index.html"), "_parent");
}
function over(e:MouseEvent):void{
onn.visible=true;
fondoverde.visible=true;
}
function out(e:MouseEvent):void{
onn.visible=false;
fondoverde.visible=false;
}
lo que necesito es crear un disco con una presentacion swf con dos enlaces uno a grafica la otra a sonido
este es el
archivo base que estoy utilizando para darte mas idea.
En el tab Flash en archivos locales en el desplegable de seguridad de reproduccion local->Acceder solo a archivos locales estaba asi por defecto.
Jorge escribió:
No le pongas target, prueba abriendo en el mismo navegador
Como hago esto?
Gracias por la ayuda