cosi_sara
cosi_sara

Reputation: 33

placement point of a movieclip in actionscript 3.0

I've import a jpeg into my flash library and modify it to movie clip. Now I have a movie clip called as "enemyShip". You can see it here : http://prntscr.com/2porvt

I set the dimensions of it :

enemyShip.height=30;
enemyShip.width=40; 

I want to know that when I write enemyShip.x=50; which point of the movie clip is exactly fitted into 50th pixel. Is there anyone to help me ?

Upvotes: 0

Views: 49

Answers (1)

mitim
mitim

Reputation: 3201

I believe it would be the movieclip's registration point. Or you can think of it as the movieclip's origin. In your screenshot, it would be the little + sign. To line up your graphic, you'd need to go in to it and adjust it as needed.

Upvotes: 1

Related Questions