Setting Registration Mark on Dynamically Generated MovieClip

  • dhonsvick
  • Beginner
  • Beginner
  • dhonsvick
  • Posts: 49

Post 3+ Months Ago

Anyone know if there is a parameter to createEmptyMovie that will allow you to set the Registration point?
Working with a full page template now and its driving me up the wall.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

i'm not sure about an easy way but you can always move the internal content after its created.

Code: [ Select ]
InnerClip._x = Math.round(InnerClip._x - (InnerClip._width/2));
InnerClip._y = Math.round(innerClip._y - (InnerClip._height/2));
  1. InnerClip._x = Math.round(InnerClip._x - (InnerClip._width/2));
  2. InnerClip._y = Math.round(innerClip._y - (InnerClip._height/2));

would place the content so that the parent clip registration point is in the center.
  • dhonsvick
  • Beginner
  • Beginner
  • dhonsvick
  • Posts: 49

Post 3+ Months Ago

this isnt a bad thought, thank you might just use this.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Remember the Math.round to force a whole pixel otherwise your text and lines could get kinda messy.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.