A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: changing size of load movie

  1. #1

    changing size of load movie

    when u load a movie using target is there a way to size the movie being loaded and is there also a neat trick to using masks with the load movie... i can't seem to get any of these to work.
    thnx

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Having this code ON the target mc will make the size fixed.

    onClipEvent(load){
    this._height=140;
    this._width=140;
    }


    If you want different sizes you can specify them on the buttons like...

    on(release){
    ysize=200;
    xsize=350;
    }

    ...and have this on the target mc...

    onClipEvent(load){
    this._height=_parent.ysize;
    this._width=_parent.xsize;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3

    if no buttons (is this correct)

    loadmovie("sound.swf","looks_up");
    telltarget("looks_up"){
    ysize=200;
    xsize=350;
    }
    and is this all I need or do I need to have the other stufff as well... (im very new to flash it is just too confusing to me)

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    If you have the code on a frame...

    loadmovie("sound.swf","looks_up");
    _root.ysize=200;
    _root.xsize=350;


    ...amd ON the looks_up mc......

    onClipEvent(load){
    this._height=_root.ysize;
    this._width=_root.xsize;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5

    thnx

    thnx and by the way your website is sweet...
    I have to wait to check ... so I will let you know how it goes

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