Comunidad de diseño web y desarrollo en internet online

"Como cambiar el metodo _parent por el metodo _blank"

Citar            
MensajeEscrito el 09 Feb 2010 04:10 pm
Hola muchachos, espero q todos se encuentren bien
el inconveniente que tengo es el siguiente.

Tengo un menú tipo carrusel y su actionscript es el siguiente:

stop();
var total:Number = 11;
var label_list:Array = new Array("goggle","xxx");
var link_list:Array = new Array("http://www.google.com","http://www.xxxx.com");
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;
}

Yo necesito que al hacer clik sobre alguna opción la misma se ejecute en otra página, he tratado de sustituir el _parent por el _blank y no me funsiona, ya no halla que colocarle.
como puedo hacer para que el menú me trabaje con el metodo _blank????

Quedo en la espera de sus prontos comentarios.

Por banrey

3 de clabLevel



 

msie7
Citar            
MensajeEscrito el 09 Feb 2010 05:54 pm
Pero el _blank donde lo pones?

Deberías ponerlo en

Código ActionScript :

getURL("tuURL","_blank");

Por ur!

256 de clabLevel



 

Barcelona

chrome
Citar            
MensajeEscrito el 09 Feb 2010 07:38 pm
La duda que tengo es que lo he cambiado de esta forma pero no me funsiona:
Coloco en NEGRITAS el cambio (estoy seguro que lo estoy haciendo mal)

fm_label.text = "Title: "+this._blank.fm_label;
info.text = "URL: " + this._blank.fm_url;
}
t.fm_button.onRollOut = function()
{
info.text = ""; fm_label.text = "";
}
t.fm_button.onRelease = function()
{
getURL( this._blank.fm_url );

como lo puedo realizar por favor?

Por banrey

3 de clabLevel



 

msie7
Citar            
MensajeEscrito el 09 Feb 2010 07:51 pm
muchas gracias ya entendi a lo q te referias.

mil gracias.....

Por banrey

3 de clabLevel



 

msie7

 

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