Hello everyone,

I made some movie clips and tweened with AS3. After watching the tween I realize I forgot to correctly set the registration point. Is there a way to change it without tossing the movie clip? Is there a setting I can go to and alter?


Thanks for your help

Dani AI

Generated

Nice call solving it yourself, . For others hitting this: Flash/Animate does not provide a one-click way to edit a symbol's registration point after the symbol is created. The registration (origin) is set when you make the symbol. You can still change the visual origin without trashing your work by either editing the symbol contents, creating a new symbol with the correct registration and swapping, or using a runtime wrapper to offset the clip.

Design-time approach (safe and common): make a new symbol (Ctrl+F8) and pick the desired registration square in the Convert to Symbol dialog. Open the old symbol, select and copy its artwork, then open the new symbol and use Paste in Place to keep artwork aligned. On the stage select an instance and use the Properties panel Swap function (or replace via Library) so instances keep their transforms. Note: editing contents affects every instance, and swapping keeps transforms but check tweens/keyframes after the swap.

Runtime workaround (no reauthoring needed): wrap the clip inside a container and offset the child so the container behaves as the new registration point. Example AS3 pattern:

var parent:DisplayObjectContainer = mc.parent;
var idx:int = parent.getChildIndex(mc);
var container:Sprite = new Sprite();
parent.addChildAt(container, idx);
container.x = mc.x;
container.y = mc.y;
parent.removeChild(mc);
container.addChild(mc);
mc.x = -offsetX; // move child so desired point sits at 0,0 of container
mc.y = -offsetY;

If you want, tell us your Flash/Animate version and whether you are using classic or motion tweens and I will give step-by-step tweaks.

Nevermind. Solved my own problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.