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?
Center a movieclip inside a container
Page 1 of 12 Replies - 2424 Views - Last Post: 17 December 2010 - 08:42 AM
Replies To: Center a movieclip inside a container
#2
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.
#3
Re: Center a movieclip inside a container
Posted 17 December 2010 - 08:42 AM
Alhazred, 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
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|