if you load your image in with a MovieClipLoader (prolly the best way to go), you can position the image, only with the onLoadInit handler. Only then will you know the dimensions of the loaded in image. the you can shift it x of image = width of image * 0.5

something like this (AS2 example):

var containerClip:MovieClip = this.attachMovieClip("emptyClipFromLib", 
"emptyClipFromLib" this.getNextHighestDepth());

var mclListener:Object = new Object();
var imageMcl:MovieClipLoader = new MovieClipLoader();
imageMcl.addListener(mclListener);
imageMcl.loadClip("images/image1.jpg", containerClip);

trace("the clip width: " + containerClip._width);

mclListener.onLoadInit = function(targetClip:MovieClip) {
   trace("the clip width: " + targetClip._width);
};

Hope this helps,

Sid

[p e r c e p t i c o n] wrote:
because i load an image into it and animate from the middle of the
image...so if i can't control the registration point it animates from top
left...

On Feb 4, 2008 9:12 AM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:

Do you mean an empty MovieClip? It's empty - why do you need to worry
about the registration point?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

[p e r c e p t i c o n] wrote:
Hi all,
Can anyone explain why when you insert a new movieclip symbol using the
insert>new symbol from the menu can't choose a registration point?  very
annoying...
that's my rant for the day...
happy monday
p

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to