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

#1156 9-slice scaling support (DefineScalingGrid)
Author: user Brandon
Date created:
Type: feature
Visibility: Everybody
Assigned to:
State: closed Help

Hi JPEXS! Hi honfika! > What steps will reproduce the problem? export as fla (i used nb 1261) and check symbol9 Cannot edit that symbol (flash prof. 13.01) And its conrners are too rounded it has less radius in origin.
user
symbol tagged as Runtime_Button_Green_Default1
developer
For me it looks the same... can you please attach screenshots of the wrong and the expected image? I can also edit it.
user
here is a better example (i have screenshot of original look) check DefineSprite31(popup.res.PopupMoreLives) you will fond 2 shapes with rounded corners in it. I attached original look in original_look.png
developer
This is interesting... I don't have any idea why is it OK with external viewer and wrong with internal viewer.
admin
I think it is a problem with numbers precision (rounding). FFDec uses double type values, FlashPlayer uses probably only float size. I added simple example - just zoom the second sprite with zoom buttons when "Internal player" is selected and without it. I am afraid it is hard task to change double to float...
Downloadpop.swf (1 KiB)
developer
I found the reason... the image is not linearly scaled. There is a tag called DefineScalingGrid (check the official documentation) the borders of the image are nor scaled (only to one direction), this is how you can scale a button with preserving the corner radiuses.
developer
9-slice scaling for bitmap exports was implemented by jpexs it needs to be implemented in svg and html5 export, too
admin
Okay, so a) 9-slice scaling is now somehow working in our flash viewer (it's not perfect on the borderlines between slices) b) it needs to be implemented in SVG c) it needs to be implemented in HTML5 Canvas d) it needs to be implemented in FLA export (this one should be the easiest)
Title: Shape error→9-slice scaling support (DefineScalingGrid)
Type: bug→feature
admin
In nightly 1855, 9-slice scaling was improved, also SVG and FLA export was implemented.
admin
In nightly 1859, HTML5 Canvas support was implemented. So that's all I think.
State: new→upgraded
admin
State: upgraded→closed