A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Adjusting line _width with AS changes _height too??

  1. #1
    </hate> dtone314's Avatar
    Join Date
    Jun 2005
    Location
    CA
    Posts
    262

    Adjusting line _width with AS changes _height too??

    I have a horizontal line that is in a movie clip. To adjust the width of the line when I click a button I use
    Code:
    btn.onPress = function(){
    	line._width += 20;
    }
    This does change the width, but the line gets thicker (height is increasing) as the width increases. Why is this happening, and how can I keep it from happening? I want only the length of the line to change, not its thickness...

    Thanks for your help!
    -dtøne-
    Flash CS4 | AS2
    Life is a journey, not a destination.

  2. #2
    </hate> dtone314's Avatar
    Join Date
    Jun 2005
    Location
    CA
    Posts
    262
    Ok, solved it. Set the "scale" property of the line to "none", and it works >.<
    -dtøne-
    Flash CS4 | AS2
    Life is a journey, not a destination.

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