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.

#551 Which parameter decide the xoffset of text in DefineText?
Author:
rendu2mai

Date created:
Type: question
Visibility: Everybody
Assigned to:
JPEXS

Labels: Text
State: closed 

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.
And what if there's no xoffset, would the offset be xmin?
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.
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.
Ok, that might be true. I haven't checked it much.
Can I close this issue?
OK.Thanks.
State: opened→closed