I took a rotateZ method from Robert Penner's Vector3D class and added
a pivotpoint to the formula. It works pretty well as a dynamic
registrationpoint :)
var mc:MovieClip;
var position:Object = {x:mc._x, y:mc._y};
var pivot:Object = {x:position.x+mc._width/2, y:position.y+mc._height/2};
var
That'll do it! Thanks.
___
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
http://www.darronschall.com/weblog/archives/54.cfm
- Original Message -
From: grimmwerks [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, May 31, 2006 8:00 PM
Subject: [Flashcoders] setting the centerpoint of a movieclip?
Is there
3 matches
Mail list logo