Flash-Backgound size-problems
Posted: 03 Nov 2009, 11:54
Hi there,
i just started a selfmade backgound in flash, with a logo on topright and something like a gradient-fill in the whole background.
i don't want to make it in 800*600 then strech in imagevue admin. i want to program the size right in my flash background....
so here is what i want to have: there should be a gradient-fill in the back - which scals when the page ist resized or on startup, the box is 200*200 px and the logo should allways be on the right top side..
here is the AS i used:
Stage.scaleMode="noScale";
Stage.align="TL";
var sl=new Object();
sl.onResize=function() {
_root.setBackground();
}
Stage.addListener(sl);
function setBackground() {
this.bg_gradient.width = stage.width();
this.bg_gradient.height = stage.height();
}
what is the mistake here? and what do i have to fill in in the imagevue-admin/themes/background things?
please help..
thanks a lot,
tobias
i just started a selfmade backgound in flash, with a logo on topright and something like a gradient-fill in the whole background.
i don't want to make it in 800*600 then strech in imagevue admin. i want to program the size right in my flash background....
so here is what i want to have: there should be a gradient-fill in the back - which scals when the page ist resized or on startup, the box is 200*200 px and the logo should allways be on the right top side..
here is the AS i used:
Stage.scaleMode="noScale";
Stage.align="TL";
var sl=new Object();
sl.onResize=function() {
_root.setBackground();
}
Stage.addListener(sl);
function setBackground() {
this.bg_gradient.width = stage.width();
this.bg_gradient.height = stage.height();
}
what is the mistake here? and what do i have to fill in in the imagevue-admin/themes/background things?
please help..
thanks a lot,
tobias