dynamic web site that adapts to the browser.

  • telefunken
  • Born
  • Born
  • telefunken
  • Posts: 1

Post 3+ Months Ago

Friends, I have a flash as3 dynamic site that fits your browser window. Funciomna super well. The problem starts when I try to add an external preloader, I get error of the following information.

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


I tried various ways but is costing me modify the code. Sent it here.

package (

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

public class extends MovieClip (Website

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 symbols to the 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 * /
bgParam = (var
x: 0,
y: 0,
offsetX: 0,
offsetY: 0
)


new FluidObject (bg, bgParam)

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

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

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

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

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


Someone can help me? Thanks!

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.