A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Scale makes my mc move... how to avoid this?

  1. #1
    Senior Member
    Join Date
    Sep 2006
    Posts
    248

    Scale makes my mc move... how to avoid this?

    Hello everyone,
    When i scale my movie clip it moves it down and to the left.
    How can i avoid this?

    Thanks,
    Regards,
    Leo.

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Scaling it manually or by code?
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Senior Member
    Join Date
    Sep 2006
    Posts
    248
    Hello Samac!
    Its by code!

  4. #4
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Yes that does happen. What I do it capture the X and Y position, scale and reapply the X and Y position if the object is on the stage first. If I am just loading the object, then I scale it then apply the X and Y positions before I addChild.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  5. #5
    Senior Member
    Join Date
    Sep 2006
    Posts
    248
    Thats the funny thing... i am getting the same x and y of the mc that is moving AFTER and BEFORE I scale it.

  6. #6
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    That explains why it is scale down but not left...it should expand to the right.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  7. #7
    Senior Member
    Join Date
    Sep 2006
    Posts
    248
    yes... i am wrong, its exactly to the right...
    it moves down to the right, i want to avoid it...
    would u mind if i send a pvt?
    Last edited by Leo75; 06-18-2012 at 10:47 AM.

  8. #8
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    No not at all.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  9. #9
    Senior Member
    Join Date
    Sep 2006
    Posts
    248
    Thanks Samac, u can check ur pvt msgs.

    Cheers.
    Leo.

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