Page 1 of 1

Flash-Backgound size-problems

Posted: 03 Nov 2009, 11:54
by paraf
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

Posted: 05 Nov 2009, 03:40
by mjau-mjau
Sorry, let me understand correctly: You have built your own SWF background with actionscript code to resize the background?

That would work, but would require you to edit all background settings so the native imagevue functions do not resize it appropriately.

Question: Did you try to run your background SWF standalone outside Imagevue? That would be the best step to make sure its working by itself un-inhibited by the Imagevue background handling. I dont see any immediate flaws with your code, except there is nothing there that re-positions your logo (unless you have that in some other code). I seem to remember "stage" is with a big "S" so "Stage.width" and not "stage.width" as you have it ... Not sure if that is required though.