JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#551 Which parameter decide the xoffset of text in DefineText?
Author: user rendu2mai
Date created:
Type: question
Visibility: Everybody
Assigned to: admin JPEXS
Labels: Text
State: closed Help

In DefineText, there's serveral parameters about xoffset: xmin, xmax & xoffset. Which one decide the final offset? I suppose xmin & xmax identify a rect, and xoffset is the final offset. However xoffset is a relative value regard of xmin xmas, or a absolute value of the screen? For example, xmin=40 xmax=200 xoffset=100, then the text is start from 40 or 140? Also, what unit is the offset? px or pt? Thank you.
user
And what if there's no xoffset, would the offset be xmin?
admin
if xmin=40 and xoffset=100, then text starts at 100. xoffset is not relative to xmin. xmin,xmax,ymin,ymax identifies rectangle around all text records in the Definetext. All SWF units are twips. I twip = 1/20 of pixel at normal zoom level. If there is no xoffset, then xoffset is zero.
State: new→opened
Assigned:admin JPEXS
user
I think Xmax and Xmin draw a rectangle on the screen, and when xoffset=0, the text starts from Xmin, not zero, cause I saw the text is not from the very left but the middle.
admin
Ok, that might be true. I haven't checked it much. Can I close this issue?
user
OK.Thanks.
admin
State: opened→closed