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.

#2479 Matrix translateX/Y seems to be incorrect
Author:
Lort533

Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: GUI
State: closed 

> What steps will reproduce the problem?
SWF file available at:
https://archives.clubpenguinwiki.info/images/archives/0/01/RoomsDance_2.swf
> What is the expected output? What do you see instead?
Matrix translateX/Y are off, when calculating from twips to pixels, doesn't match. What
should be negative translateX/Y appears as 0, while positive translateX/Y doesn't
correlate to actual pixel X/Y on 100% zoom.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
OS: Fedora Linux 42
Using latest stable version of JPEXS: 24.0.1.
It is calculated correctly.
See:
The background shape is shape with chid 8.
That shapes top left corner is located at coordinates -7800, -5000.
Shape 8 is then placed into sprite chid 9 with matrix 0, 0,
Sprite 9 is then placed into sprite chid 126 with matrix 7600, 4800.
Sprite 126 is then placed on main timelines frame 1 with matrix 0, 0
If you add these numbers:
-7800 + 7600 = -200 => -10px
-5000 + 4800 = -200 => -10px
You get -10, -10 pixel coordinates for top left corner of the background.
See attached screenshots.


State: new→opened
Type: bug→question
Type: bug→question
Oh I see, I've suspected this to be the case, but couldn't figure it out. Thanks!
You're welcome.
State: opened→closed