Results 1 to 3 of 3

Thread: Centered _xscale tween?

  1. #1
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default Centered _xscale tween?

    Hello...

    I'm using the Tween + easing classes to create a scaling tween effect. The movieclip in question is a simple box whichgoes from 1x1 to 50x50.

    The effect works fine, however it scales from the upper right corner of the box.

    I want the box to scale from the center point. I can easily create this effect on the timeline and manually tween it, however I'm loading in images into the "box" dynamically and need it to change to various sizes depending on the image size. Therefore, tweening on the timeline won't work as I can't edit the .fla ever time I want to update pictures.

    Thanks.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Fixed it.

    problem w/ registration point.

    the movieclip was centered but the image inside wasn't!

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

    Default

    You know how many times I do that? That is probably my number one error, either that or using AS to call an MC from the library and forgetting to enable linkage on the MC itself. I hate that one!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    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
  •