-
loadMovieNum - Size Issue!
Need help with some actionscript please!
My original movie is 800x600 and my external swf is 700x525... I'm using the following script on a keyframe...
loadMovieNum("123.swf", 1);
... and under normal circumstances this would work fine... however... I need the 700x525 external swf to retain its size in the center of the 800x600 original movie... right now it's edge to edge and showing what's going on 'offstage' in the external swf!
What scripting am I missing? I'm using Flash 8 on a Mac... Thanks so much!
(btw I can't mask the external movie for other complicated reasons... tried that!)
-
Ryan Thomson
so you want to stretch the movie to match the main stage? Maybe load it into a movieclip instead, something like
this.createEmptyMovieClip("container", this.getNextHighestDepth());
container.loadMovie("123.swf");
this.onEnterFrame=function(){
if(container._width != 0 || container._width != undefined){
container._width = 800;
container._height = 600;
delete onEnterFrame;
}
}
should work. (i just quickly coded that in the window so hopefully there are no errors!)
-
So sorry for the delay replying... been on the road!
Thank you for your response, but no, I don't want to stretch the external swf but rather constrain it's proportions within the larger stage... i.e. when you click a button in the main movie a 'picture frame' appears and I want the external swf to load within the 'picture frame'... whereas right now it is 'overlapping' the frame and filling the entire stage...
Any further ideas or feedback would be much appreciated!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|