Hi,
I would like a movieclip on the stage to match the stageWidth by tweening its "z" property.
How can this be done?
Thanks
Printable View
Hi,
I would like a movieclip on the stage to match the stageWidth by tweening its "z" property.
How can this be done?
Thanks
you will have to do some calculations, i can only think of
mymovieclip.z = (stage.stageWidth/mymovieclip.width)*perspectiveFactor
now the perspectiveFactor is somothing where you will have to try different values till you get somothing close.
maybe a better way would be to check every frame if the stagewidth and movieclip width are >= and if not decrease the z of movieclip