A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: _height and _width

  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    96

    Lightbulb

    I have a MC with a box(100px X 100px)in it I also have a small button(10px X10px) in the bottom right conner of the box. the button("resize") and movie clip("box") are seperate. When I select and drag the button the box resizes to the right width and height but the lines around the fill get bigger too. How could I stop this from happening.
    Code:
    //in same frames with MC
    	box._width = (resize._x);
    	box._height = (resize._y);
    //for the button
    on (press) {
    	_root.refit = true;
    	startDrag(resize);
    }
    on (release) {
    	_root.refit = false;
    	stopDrag();
    }
    click here to down load the fla http://home.earthlink.net/~wmilkovic/fixme.fla
    and here to see an example swf http://home.earthlink.net/~wmilkovic/

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    667
    Change the line size to hairline to stop them from changing size.

  3. #3
    gskinner.com
    Join Date
    Feb 2002
    Location
    N.America
    Posts
    455
    Or draw the box dynamically using the draw methods.

    etcettra's solution is much easier though, unless you need lines thicker than 1 pixel.

    Cheers,
    ZE.

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