A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: dynamic resize for external swf

Threaded View

  1. #1
    is not a good designer. No-Tec's Avatar
    Join Date
    Aug 2002
    Posts
    1,349

    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.
    Last edited by No-Tec; 12-04-2003 at 04:54 PM.
    maybe.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center