2 Replies - 2424 Views - Last Post: 17 December 2010 - 08:42 AM

#1 Alhazred  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 171
  • Joined: 25-July 07

Center a movieclip inside a container

Posted 11 October 2010 - 11:08 AM

I have to add inside a movieclip other movieclips dynamically.
I do this with addChild method, the problem is that the added clips resize themself losing their aspect ratio.
I'd want to add those clips keeping their width and height and center them inside the container.

How can I do that?
Is This A Good Question/Topic? 0
  • +

Replies To: Center a movieclip inside a container

#2 Alhazred  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 171
  • Joined: 25-July 07

Re: Center a movieclip inside a container

Posted 12 October 2010 - 01:01 PM

I've solved in this way: I've given to both the movieclip and the container the same sizes, then I've written the code to dynamically center the container on the stage.
Was This Post Helpful? 0
  • +
  • -

#3 jordanchapian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 04-April 10

Re: Center a movieclip inside a container

Posted 17 December 2010 - 08:42 AM

View PostAlhazred, on 12 October 2010 - 12:01 PM, said:

I've solved in this way: I've given to both the movieclip and the container the same sizes, then I've written the code to dynamically center the container on the stage.


http://as3evolution....onscript-3.html
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1