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

sitio web dinamico que se adapta al browser.

Estas en el tema de sitio web dinamico que se adapta al browser. en el foro de Flash y Actionscript en Foros del Web. Amigos, tengo un sitio en flash as3 dinamico que se adapta a la ventana del explorador. Funciomna super bien. El problema comienza cuando intento agregarle ...
  #1 (permalink)  
Antiguo 03/04/2010, 10:14
 
Fecha de Ingreso: julio-2009
Mensajes: 1
Antigüedad: 14 años, 9 meses
Puntos: 0
sitio web dinamico que se adapta al browser.

Amigos, tengo un sitio en flash as3 dinamico que se adapta a la ventana del explorador. Funciomna super bien. El problema comienza cuando intento agregarle un precargador externo, me aparece el siguente error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Website()


He intentado varias maneras pero me esta costando modificar el codigo. Aca lo envio.

package {

import flash.display.*;
import FluidLayout.*;

public class Website extends MovieClip{

public function Website()
{

if(stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(event:Event = null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
}

/* Set the Scale Mode of the Stage */
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

/* Add the symbols to stage */
var bg = new Background();
addChild(bg);

var title = new Title();
addChild(title);

var menu = new Menu();
addChild(menu);

var middle = new Middle();
addChild(middle);

var footer = new Footer();
addChild(footer);

/* Apply the alignment to the background */
var bgParam = {
x:0,
y:0,
offsetX: 0,
offsetY: 0
}


new FluidObject(bg,bgParam);

/* Apply the alignment to the title */
var titleParam = {
x:0,
y:0,
offsetX:0,
offsetY:0
}
new FluidObject(title,titleParam);

/* Apply simple alignment to the title */
/*var titleParam = {
alignment: "TOP_LEFT",
margin: 0
}
new SimpleFluidObject(title,titleParam);*/

/* Apply the alignment to the menu */
var menuParam = {
x:1,
y:0,
offsetX: -menu.width - 20,
offsetY: 20
}
new FluidObject(menu,menuParam);

/* Apply the alignment to the content */
var middleParam = {
x:0.5,
y:0.5,
offsetX: -middle.width/2,
offsetY: -middle.height/2
}
new FluidObject(middle,middleParam);

/* Apply the alignment to the footer */
var footerParam = {
x:1,
y:1,
offsetX: -footer.width - 10,
offsetY: -footer.height -10
}
new FluidObject(footer,footerParam);
}
}
}


Alguien me puede ayudar? Gracias!!!

Etiquetas: dinamico, browsers
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 16:44.