Is there a way to change the position of the registration point inside a Movie Clip using Flash5 ? I've found stuff online for older Flash versions but not CS5.
50649 次
3 に答える
16
私はそれを知りませんでした。
私の知る限り、あなたがする必要があるのは:
- MovieClipを編集する(Dobule-クリック)
- MovieClipのコンテンツをステージ上の十字線に対して移動します
変換ポイントを登録ポイントと一致させる場合:
- 1つ上のレベルに移動します
- 変換ツール(Q)を使用する
- 変換ツールの円をダブルクリックします。
HTH
于 2010-09-13T14:49:14.283 に答える
2
In free transform mode, just move the hollow circle wherever you want and that will set the new registration point.
于 2012-03-04T19:46:44.980 に答える
0
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);
}
于 2013-08-09T02:43:31.377 に答える