PDA

View Full Version : getting backgound color to scale


johnnyu
10-26-2007, 02:52 PM
Hi
hope this makes sense and is easy fix.
I want to have a custom gradient background for my flash presentation.
I have simply created a marque the size of my background to do so - looks fine, but when i play full size - ( fullscreen-true, allow scale false) i see the default background color around the gradient box.

Is there a way to have the gradient image scale with presentation when it plays full screen?

thanks
ju

raskolnikov
11-15-2007, 01:39 AM
u need to determine stage height and width then place it right.

your background should be a movie clip with an instance name say "bg". the center point crosshair should be the top left corner of background

put on same frame as your background movclip

//to figure out dimension
bg._height=Stage.height
bg._width=Stage.width

//to align to top left corner of screen
bg._x=0;
bg._y=0;

Good Luck!

johnnyu
11-15-2007, 10:23 PM
thanks i'll give it a try