Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/02/2011, 14:54
Diavlo
 
Fecha de Ingreso: noviembre-2010
Mensajes: 7
Antigüedad: 14 años, 2 meses
Puntos: 0
Pregunta Problema con menu simple con AS3

Hola buenas, tengo un problema que no puedo solucionar, a ver si alguno de ustedes me puede ayudar. Hice una pelicula top menú en flash con 5 botones los cuales al hacer click abren un archivo .php puse todo el as en una solo fotograma y al probar la pelicula da el siguiente error.
TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
at logo3_fla::MainTimeline/frame61()


el codigo as3 que tengo es el siguiente:

contacto.addEventListener(MouseEvent.CLICK, abrir1);
function abrir1(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.misitio.cl/contacto.php"), "_self");
}
masajes.addEventListener(MouseEvent.CLICK, abrir2);
function abrir2(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.misitio.cl/masajes.php"), "_self");
}
spa.addEventListener(MouseEvent.CLICK, abrir3);
function abrir3(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.misitio.cl/spa.php"), "_self");
}

fotos.addEventListener(MouseEvent.CLICK, abrir4);
function abrir4(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.misitio.cl/fotos.php"), "_self");
}

portada.addEventListener(MouseEvent.CLICK, abrir5);
function abrir5(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.misitio.cl/"), "_self");
}
agradecería mucho si me pueden ayudar.

saludos