Link to home
Start Free TrialLog in
Avatar of instill
instill

asked on

Background "exact fit" while parent contents "noscale"

I want to use a background that scales to "exact fit" but then I have a text block centered on the screen that I do not want to scale at all, akin to the HTML embed property "noscale".  The end result should be a background that behaves as if it was given the parameter "exactfit" while the primary contents never scale.

Help please!
Avatar of pietertje1983
pietertje1983

you can set the width and height to the stage properties with:
img_mc._height = Stage.height;
img_mc._width = Stage.width;
Avatar of instill

ASKER

Thanks for the help pietertje1983, but that doesn't seem to be it.  That or I misunderstood.
Avatar of instill

ASKER

This is some non-working actionscript that may better illustrate what I am trying to do:

// LOAD BACKGROUND
var container = createEmptyMovieClip("background", 0);
var loadListener:Object = new Object();
loadListener.onLoadComplete = function(target_mc:MovieClip) {
};
var mcl:MovieClipLoader = new MovieClipLoader();
mc1.scaleMode = "exactfit";
mc1.loadClip("background.swf", container);

// LOAD TEXTBLOCK
var container = createEmptyMovieClip("textblock", 1);
var loadListener:Object = new Object();
loadListener.onLoadComplete = function(target_mc:MovieClip) {
};
var mc2:MovieClipLoader = new MovieClipLoader();
mc2.scaleMode = "showall";
mc2.loadClip("textblock.swf", container);

**THE ABOVE DOES NOT WORK

Help greatly appreciated.  Thanks!!!
ASKER CERTIFIED SOLUTION
Avatar of Montoya
Montoya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of instill

ASKER

Thanks for your help Montoya.  Stacking SWFs just might give me the effect I desire.  I assume I would have to wmode/transparent the textblock content and display it above my background image?  HTML/DHTML for stacking SWFs would be very helpful.  Thanks again.
Glad to be of assistance.

:)


Cheers,
Montoya