Is there a way to get the referencePoint of a display object? I need to know what’s the reference point of a text object so i can restore it after changing the text and not screw the alignment that object has. [import]uid: 57552 topic_id: 18145 reply_id: 318145[/import]
It’s usually defaulted to the top left of the picture region or the center of it. The best way to tell is just put it at 0, 0 and go from there.
Hope I helped! [import]uid: 103624 topic_id: 18145 reply_id: 69382[/import]
The thing is I have a function that receives a text object, it does some things and it modifies the text of that object (it updates the score), the problem is that when it modifies the text of the object, the referencePoint resets itself to the default and if my object that i received previously had a referencePoint that wasn’t the default then i hace a problem, so it will be usefull for me to know what’s the referencePoint that the object had so i can restore it after changing the text and not screw the alignment (i could send to my function the referencePoint in another parameter, but that’s the thing i want to avoid)
[import]uid: 57552 topic_id: 18145 reply_id: 69387[/import]