Comunidad de diseño web y desarrollo en internet online

Menu Carrusel

Citar            
MensajeEscrito el 31 Ago 2007 10:25 pm
Necesito ayuda con un menu de carrrusel, esto es lo que tengo hasta ahora
http://www.urbansv.com/prueba/
pero necesitodos cosas:

1-El tutorial que hice carga imagenes de a fuera como iconos, y yo quiro cargar MC de adentro sin xml;

2-Y segundo que al darle click a una seccion los demas se pocicionen en una esquina y el otro se aga grande para ver la seccion.

siempre le he tenido fe ha este foro asique necesito ayuda, es mi primer post porque nunca he necesitado preguntar siempre las respuestas estan ahi, pero ahora no las encuentro ayuda...
:(

Por zero_cool

1 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 01 Sep 2007 12:18 am
usa attachMovie para vincular los MC desde tu biblioteca, y para lo otro se me ocurre q podrias crear una funcion donde guardes las pociciones a adoptar y luego la llamas en cada boton

Por penHolder

Claber

4661 de clabLevel

39 tutoriales
2 articulos

Genero:Masculino   Premio_Secretos

| mdz |

firefox
Citar            
MensajeEscrito el 02 Sep 2007 02:14 am
Gracias por la respuesta; pero soy algo basico con los AS si porfavor podes ser mas especifico, te lo agradeceria mas te pongo el codigo:

Código ActionScript :

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;


var numDeItems:Number;
var radioX:Number = 300;
var radioY:Number = 75;
var centroX:Number = Stage.width/2;
var centroY:Number = Stage.height/2;
var velocidad:Number = 0.002;
var perspectiva:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;


var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()

{
   var nodes = this.firstChild.childNodes;
   numDeItems = nodes.length;
   for(var i=0;i<numDeItems;i++)
   {
      var t = home.attachMovie("item","item"+i,i+1);
      t.angulo = i *((Math.PI*2)/numDeItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.icon.interno.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
   }
   
}

function over()
{
   home.tooltip.tipText.text = this._parent.toolText;
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y - this._parent.height/2;
   home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
   home.tooltip._alpha = 100;
}

function out()
{
   
   delete home.tooltip.onEnterFrame;
   home.tooltip._alpha = 0;
}

function released()
{
   trace(this._parent.toolText);
}

function moveTip()
{
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y - this._parent.height/2;
}

xml.load("iconos.xml");

function mover()
{
   this._x = Math.cos(this.angulo) * radioX + centroX;
   this._y = Math.sin(this.angulo) * radioY + centroY;
   var s:Number = (this._y - perspectiva) / (centroY+radioY - perspectiva);
   this._xscale = this._yscale = s * 100;
   this.angulo += this._parent.velocidad;
   this.swapDepths(Math.round(this._xscale)+100);
}

this.onMouseMove = function()
{
   velocidad = (this._xmouse-centroX)/3500;
}

Por zero_cool

1 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 28 Dic 2009 09:08 pm
como puedo detener la rotacion
al retirar el mouse del menu.

no puedooooo

Por r2

0 de clabLevel



 

chrome

 

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