dynamic resize for external swf
Okay, so this is what I've got
http://www.dbry.com/test/indexx.html
When the movie loads it says
Code:
onClipEvent (load) {
_root.createEmptyMovieClip("containerMC", 0);
_root.containerMC._x = 32;
_root.containerMC._y = 32;
_root.containerMC.loadMovie("news.swf");
}
and this is what the moving visable movie clip is doing
Code:
onClipEvent (enterFrame) {
speed = 3;
this._width += (_root.containerMC._width/2-this._width/2)/speed;
this._height += (_root.containerMC._height/2-this._height/2)/speed;
}
but whenever I click a button to load a new swf, the visable movies dimentions go to 0x0 assumingly b/c the containerMC is dissappearing for a monent? Well what I want is have the visable clip keep its dimentions when a button's clicked and somehow preload the new swf, than when its loaded, resize to fit it [which ive done] so it doesnt have so much crazy movement.
any direction i should go would help alot. thanks guys.