I’m not sure if I’m missing something vital here, but something seems odd. I’m trying to use PolyLines, but it seems the width property should really be called strokeWidth. How can I access the actual width of the object? [import]uid: 7714 topic_id: 1476 reply_id: 301476[/import]
You can get the width and height of an object using object.stageWidth and object.stageHeight
(where “object” is the name of your object). [import]uid: 7559 topic_id: 1476 reply_id: 4113[/import]
Thanks, that helped. Also, when I scale a PolyLine, it seems to scale from a point outside itself. Why on earth is this? How can I scale from the center? [import]uid: 7714 topic_id: 1476 reply_id: 4128[/import]
Did you try: “poly:setReferencePoint(display.CenterReferencePoint)” ? [import]uid: 6928 topic_id: 1476 reply_id: 4150[/import]