kalpaitch
01-20-2009, 01:38 PM
This should be simple enough, but my brain is not fully functioning and I would appreciate some help.
I am trying to get the loaded movie "GB.swf" to scale/change width and height onResize. And yes I do want to be loading into a level, not into a mc, with loadMovieNum. Here is the code:
stop();
var depth = 5, x = ((Stage.width/10)*2)+10, y = 160;
var widthscale = ((Stage.width/10)*6)-20;
var heightscale = (Stage.height-170);
_root.onEnterFrame = function() {
this["_level"+depth]._x = x;
this["_level"+depth]._y = y;
_level5._width = widthscale;
_level5._height = heightscale;
};
GBListener = new Object();
GBListener.onResize = function () {
this["_level"+depth]._x = x;
this["_level"+depth]._y = y;
_level5._width = widthscale;
_level5._height = heightscale;
}
Stage.addListener(GBListener);
Guestbook_btn.onPress = function() {
loadMovieNum("GB.swf", depth);
};
I am trying to get the loaded movie "GB.swf" to scale/change width and height onResize. And yes I do want to be loading into a level, not into a mc, with loadMovieNum. Here is the code:
stop();
var depth = 5, x = ((Stage.width/10)*2)+10, y = 160;
var widthscale = ((Stage.width/10)*6)-20;
var heightscale = (Stage.height-170);
_root.onEnterFrame = function() {
this["_level"+depth]._x = x;
this["_level"+depth]._y = y;
_level5._width = widthscale;
_level5._height = heightscale;
};
GBListener = new Object();
GBListener.onResize = function () {
this["_level"+depth]._x = x;
this["_level"+depth]._y = y;
_level5._width = widthscale;
_level5._height = heightscale;
}
Stage.addListener(GBListener);
Guestbook_btn.onPress = function() {
loadMovieNum("GB.swf", depth);
};