PDA

View Full Version : full flash sites



MrMJS
August 30th, 2006, 07:40 AM
Are there any tricks that can be done with the background for a full flash site? Like having things scale with the stage and others not?? or loading external images for a background?

jasvarghese
August 30th, 2006, 08:20 AM
Ya sure...!!! by creating empty movie clips and afterthat we should duplicate the movie clips:bu:

evildrummer
August 30th, 2006, 08:41 AM
Its easy to load a random external image in flash, ask if you want the code.

You can make the image scale with the stage, I think it is, if you put image in mc called 'bg' then code is:

bg._width = stage._width;
bg._height = stage._height;
bg._x = 0;
bg._y = 0;

Anogar
August 30th, 2006, 12:05 PM
It's:



Stage.width
Stage.height


The syntax is different for the stage. Keep in mind that code would need to be inside a resize listener. Here is an example off a page I'm working on:



Stage.align = "TL"
Stage.scaleMode = "noScale"
logo._x = Stage.width/2;
logo._y = Stage.height/2;
var stageL:Object = new Object();
stageL.onResize = function() {
logo._x = Stage.width/2;
logo._y = Stage.height/2;
};
Stage.addListener(stageL);