开发者

Flash: change x,y=0,0 to top right corner, instead of top left

Is there a way in Flash to change the x,y axis-system so that 0,0 will be the开发者_JS百科 top-right corner of the stage instead of the top left? (for when I'm developing something in an RTL language - the positioning calculations will be easier to handle...)


There isn't that I'm aware of (It may exist in a localized version of Flash Designer). But you could always just pump coordinates through a utility function that would discover the width of the DisplayObject, and convert that way. Something like this:

function convertRTL(x:int, o:DisplayObject):int {
    return o.width - x;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜