Foros del Web » Creando para Internet » Flash y Actionscript »

Apertura de link con _blank

Estas en el tema de Apertura de link con _blank en el foro de Flash y Actionscript en Foros del Web. Buenos dias, hola muchachos, tengo una consulta, espero me puedan ayudar. tengo un menu tipo carrusel, el problema del menú es que cuando hago clik ...
  #1 (permalink)  
Antiguo 08/02/2010, 07:29
 
Fecha de Ingreso: septiembre-2007
Mensajes: 318
Antigüedad: 16 años, 7 meses
Puntos: 1
De acuerdo Apertura de link con _blank

Buenos dias,

hola muchachos, tengo una consulta, espero me puedan ayudar.

tengo un menu tipo carrusel, el problema del menú es que cuando hago clik sobre una opción la misma me abre en la misma pagina y yo necesito que me abra en una pagina distinta o aparte de la donde tengo el menú.
el codigo que tengo es el siguiente.

he probado sustituyendo _parent por _blank, por _stop y no he logrado ponerlo a trabajar.

tendran alguna idea que me pueda ayudar??

stop();


var total:Number = 11;

var label_list:Array = new Array("forosdelweb");

var link_list:Array = new Array("http://www.forosdelweb.com/newthread.php?do=newthread&f=16");

var radiusY:Number = 60;
var radiusX:Number = 110;
var centerX:Number = 165;
var centerY:Number = 100;
var speed:Number = 0.005;
tn_group_mc._visible = false;
info.text = ""; fm_label.text = "";

for( var i = 0; i < total; i++)
{
var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
t.tn_mc.gotoAndStop(i+1); t.tn_shadow_mc.gotoAndStop(i+1);
t.fm_label = label_list[i];
t.fm_url = link_list[i];

t.angle = i * ((Math.PI*2)/total);
t.onEnterFrame = mover;

t.fm_button.onRollOver = function()
{
fm_label.text = "Title: "+this._parent.fm_label;
info.text = "URL: " + this._parent.fm_url;
}
t.fm_button.onRollOut = function()
{
info.text = ""; fm_label.text = "";
}
t.fm_button.onRelease = function()
{
getURL( this._parent.fm_url );
}
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX) * 0.0001;
}

muchas gracias muchachos... espero que me puedan ayudar.
  #2 (permalink)  
Antiguo 08/02/2010, 14:22
Avatar de loncho_rojas
Colaborador
 
Fecha de Ingreso: octubre-2008
Ubicación: En el mejor lugar del mundo
Mensajes: 2.704
Antigüedad: 15 años, 6 meses
Puntos: 175
Respuesta: Apertura de link con _blank

la verdad lo miro, y bue.. no conozco exactamente el funcionamiento..

ahora bien.. lo mas probable es que la construccion del getURL no esta bien.

como sabes

getURL("direccion-con-comillas", "destino-con-comillas");

y el editor lo contruyo como :getURL( this._parent.fm_url );, tal vez necesite que le pases el paramtro _blank con comillas.. al menos eso se me ocurre de manera rapida, y tal vez un 50% ineficiente.. pero espero te ayude a darle las vueltas necesarias
__________________
Ayudo con lo que puedo en el foro, y solo en el foro.. NO MENSAJES PRIVADOS.. NO EMAILS NI SKYPE u OTROS.

Antes de hacer un TOPICO piensa si puedes hallarlo en Google o en el Buscador del Foro...

Etiquetas: blank, link
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:49.