I'm not familiar with Schall's class, but why are you using ._x2, ._y2 and not just ._x and ._y? For centering purposes, the registration point shouldn't even matter. -Marc

At 02:15 PM 10/12/2006, you wrote:

Ok, I've got to be missing something basic here. I am
trying to load and center a movieclip to the stages
center. I cannot control the registration points of
the loaded movie clips so I have tried to make use of
Darron Schall's DynamicRegistration class, but
something is awry.

====================================
_global.loadWrongMovie = function(mc){
  movie_mc = attachMovie(mc, mc+"2", 142);

  movie_mc.stop();

  DynamicRegistration.initialize(movie_mc);

  movie_mc.setRegistration(0, 0);

  movie_mc._x2 = Stage.width/2 - movie_mc._width/2;
  movie_mc._y2 = Stage.height/2 - movie_mc._height/2;
}


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to