Confining SWF to a MovieClip in AS3
I've been searching everywhere, and I can't find an answer to this problem. I'm making a portfolio site for myself, and I'm a total newbie to AS3. I've only had a few problems that I was able to iron out myself through searching, but this has taken me a couple days.
What I want to be able to do is take a gallery I made in Bridge and import the SWF so that it is confined to the size of my predesignated movieclip background. The SWF loads perfectly, it's just that I have navigation at top, and the SWF wants to fill the whole stage. If it does, then everything else gets blocked out.
My code is really simple right now:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("viewer.swf");
myLoader.load(url);
addChild(myLoader);
myLoader.x = 0;
myLoader.y = 0;
How do I fix it so that it only loads up confined to the size of my movieclip, which I'm calling galleryMC?
|