A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: movie._width not correct why please help

  1. #1
    Member
    Join Date
    Feb 2001
    Posts
    82
    hi there

    i have made a movie with the width of 20px

    it is in the libary

    i want to attach a few instances of the same movie on stage, for that i need to determ the width because of a correct placement next to eachother.

    but

    x = theMovie._width; is sometimes 0.6, sometimes 0.7 px bigger then the original

    can someone help me in that i really need a correct placement without giving the original width by number manually.

    thx in advance

    marcelv

    sorry about my english

  2. #2
    gskinner.com
    Join Date
    Feb 2002
    Location
    N.America
    Posts
    455
    You probably have something running out of the bounds of your movieClip, like a transparent element, part of a text box, or the end of a line. Get rid of it, and _width will work (I use it fairly often).

    Hope it helps,
    ZE.

  3. #3
    Member
    Join Date
    Feb 2001
    Posts
    82

    thx for your help but

    thx for your help but

    i checked it and there is nothing around what i could get rid of and the movie is exactly 20px width

    really strange

    thx anyway

    cheers

  4. #4
    Member
    Join Date
    Feb 2001
    Posts
    82

    i found it


    somehow when there is a quad with a line the property inspector doesent count the line, but the actionscript does.

    could that be?

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