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!
Help please!
ASKER
Thanks for the help pietertje1983, but that doesn't seem to be it. That or I misunderstood.
ASKER
This is some non-working actionscript that may better illustrate what I am trying to do:
// LOAD BACKGROUND
var container = createEmptyMovieClip("back ground", 0);
var loadListener:Object = new Object();
loadListener.onLoadComplet e = function(target_mc:MovieCl ip) {
};
var mcl:MovieClipLoader = new MovieClipLoader();
mc1.scaleMode = "exactfit";
mc1.loadClip("background.s wf", container);
// LOAD TEXTBLOCK
var container = createEmptyMovieClip("text block", 1);
var loadListener:Object = new Object();
loadListener.onLoadComplet e = function(target_mc:MovieCl ip) {
};
var mc2:MovieClipLoader = new MovieClipLoader();
mc2.scaleMode = "showall";
mc2.loadClip("textblock.sw f", container);
**THE ABOVE DOES NOT WORK
Help greatly appreciated. Thanks!!!
// LOAD BACKGROUND
var container = createEmptyMovieClip("back
var loadListener:Object = new Object();
loadListener.onLoadComplet
};
var mcl:MovieClipLoader = new MovieClipLoader();
mc1.scaleMode = "exactfit";
mc1.loadClip("background.s
// LOAD TEXTBLOCK
var container = createEmptyMovieClip("text
var loadListener:Object = new Object();
loadListener.onLoadComplet
};
var mc2:MovieClipLoader = new MovieClipLoader();
mc2.scaleMode = "showall";
mc2.loadClip("textblock.sw
**THE ABOVE DOES NOT WORK
Help greatly appreciated. Thanks!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
:)
Cheers,
Montoya
img_mc._height = Stage.height;
img_mc._width = Stage.width;