Advanced Search

Results 1 to 2 of 2

Thread: getBounds?

  1. #1
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default getBounds?

    Hello...

    How would I determine the width of a movieclip after using a scaling tween class on it?

    Using "movieclip._width" gives me the original width, not the new scaled width.

    I'm guess this might involve the getBounds() method but that would only return the coordinates...not sure how to translate that into a width.

    Thanks for the help.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    after the transformation use "this._width"

    Alternately you can do something like movieClip._width = newWidth then just use newWidth when ever it is needed.

    That is if I get your meaning in the use of it
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •