Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/06/2011, 15:27
Avatar de Mario_1
Mario_1
 
Fecha de Ingreso: junio-2011
Ubicación: Monterrey, Mexico
Mensajes: 3
Antigüedad: 12 años, 9 meses
Puntos: 0
Pregunta click a boton en flash cargue nueva imagen??

Que tal? soy nuevo en este foro espero me puedan ayudar:). Soy novato en flash y ac3, queria saber como puedo hacer para que al dar click a un boton (en este caso boton amarillo) me aparesca una nueva imagen como algun recuadro con la informacion de el boton a lado, para que me entiendan mejor les dejo el link del flash:

http://testeando100.onlinewebshop.net/

y el codigo ac3:

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;


public class BotonSimple extends MovieClip
{
public function BotonSimple()
{
this.stop();
this.buttonMode = true;

this.addEventListener(MouseEvent.ROLL_OVER, onRoll);
this.addEventListener(MouseEvent.ROLL_OUT, onOut);
}
private function onRoll(event:MouseEvent):void
{
this.removeEventListener("enterFrame", onRetroceder);
this.addEventListener(Event.ENTER_FRAME, onAvanzar);
}
private function onOut(event:MouseEvent):void
{
this.removeEventListener("enterFrame", onAvanzar);
this.addEventListener(Event.ENTER_FRAME, onRetroceder);
}

private function onAvanzar(event:Event):void
{
if(this.currentFrame< this.totalFrames) {
this.nextFrame();
}else{
this.removeEventListener("enterFrame", onAvanzar);
}
}

private function onRetroceder(event:Event):void
{
if(this.currentFrame> 1) {
this.prevFrame();
}else{
this.removeEventListener("enterFrame", onRetroceder);
}
}
}
}


Les agradeceria mucho si me pudiran ayudar..

GRACIAS.