Reposition the registration point in Flash CS5

Is there a way to change the position of the registration point inside the Movie Clip using Flash5? I found material on the Internet for older versions of Flash, but not for CS5.

+4
source share
3 answers

I did not know about it.

As far as I know, all you need to do is:

  • edit MovieClip clip (Dobule-click)
  • move the contents of MovieClip relative to the crosshair in the scene

If you want to combine the conversion point with the registration point:

  • Go up one level
  • Use the Transform Tool (Q)
  • Double-click the Transform Tool circle.

NTN

+15
source

In free conversion mode, just move the hollow circle wherever you want and set a new registration point.

+2
source
import flash.display.Sprite; import flash.events.Event; import flash.geom.Transform; var rec:Sprite = new Sprite(); rec.graphics.beginFill(0x00FF00, 1); rec.graphics.drawRect(-50, -50, 100, 100); addChild(rec); var tp:Transform = new Transform(rec); tp.matrix.tx = 0; tp.matrix.ty = 0; trace("X: " + rec.x + " Y: " + rec.y); rec.x = 250; rec.y = 250; trace("X: " + rec.x + " Y: " + rec.y); addEventListener(Event.ENTER_FRAME, onEnterFrame); function onEnterFrame(event:Event):void { rec.rotation += (Math.PI / 0.1); } 
0
source

All Articles