A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: set size and postion of loaded swf

  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    66

    set size and postion of loaded swf

    I am loading an external swf into a holder mc. How do I set the size and position of the swf that I am loading?

    I tried this on my button, but it doesnt work, just loads the swf the same size it was created at and puts it at where the mc was dropped on the stage...

    on (press) {
    loadMovie("clothing_swf/jennymccarthy_shirt.swf", "/movieloader");
    movieloader._xscale=50;
    movieloader._yscale=50;
    movieloader._x = 375;
    movieloader._y = 500;

    }

  2. #2
    Member
    Join Date
    Oct 2005
    Posts
    66
    okay...just needed to add _root. to it and it works.

    Now is there a way to set a specified width and height instead of scaling? Say I need to fit something into a specified size everytime, it would be easier to have it sized for all rather than scaling, as you would need different scale values for different swf.

    I tried _width and _height, but these don't seem to work with the loaded swf?

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