Loading FlashPaper 2.0 documents as sprites in Director
June 28, 2006 | 0 comments
Basically, you need to disable any scaling by Director, and make sure the origin is centered. Here is a snippet of Lingo code to accomplish this:
on beginSprite me
--use a point for center
sprite(spriteNum).originMode = #point
--set the origin
sprite(spriteNum).originH = sprite(spriteNum).width/2
sprite(spriteNum).originV = sprite(spriteNum).height/2
--set the scale mode to none (scales itself)
sprite(spriteNum).scaleMode = #noScale
end
Comments