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

**: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.**

#812 decompile fail

Author: uragan1987

Date created:

Type: bug

Visibility: Everybody

Assigned to:

Labels: AS1/2

State: closed

hi
I have compare my drawCircle function with JPEXS and Softlink
JPEXS writes _locXX_ (XX = numbers) instead the args like "radius, fillColor, fillAlpha"
------------------------------------
here decompile from Softlink:
function drawCircle(target_mc, radius, fillColor, fillAlpha)
{
var _loc6 = 0;
var _loc7 = 0;
with (target_mc)
{
lineStyle(1, fillColor, fillAlpha, true, "none", "round", "round");
moveTo(_loc6 + radius, _loc7);
curveTo(radius + _loc6, Math.tan(Math.PI / 8) * radius + _loc7, Math.sin(Math.PI /
4) * radius + _loc6, Math.sin(Math.PI / 4) * radius + _loc7);
curveTo(Math.tan(Math.PI / 8) * radius + _loc6, radius + _loc7, _loc6, radius +
_loc7);
curveTo(-Math.tan(Math.PI / 8) * radius + _loc6, radius + _loc7, -Math.sin(Math.PI
/ 4) * radius + _loc6, Math.sin(Math.PI / 4) * radius + _loc7);
curveTo(-radius + _loc6, Math.tan(Math.PI / 8) * radius + _loc7, -radius + _loc6,
_loc7);
curveTo(-radius + _loc6, -Math.tan(Math.PI / 8) * radius + _loc7,
-Math.sin(Math.PI / 4) * radius + _loc6, -Math.sin(Math.PI / 4) * radius + _loc7);
curveTo(-Math.tan(Math.PI / 8) * radius + _loc6, -radius + _loc7, _loc6, -radius +
_loc7);
curveTo(Math.tan(Math.PI / 8) * radius + _loc6, -radius + _loc7, Math.sin(Math.PI
/ 4) * radius + _loc6, -Math.sin(Math.PI / 4) * radius + _loc7);
curveTo(radius + _loc6, -Math.tan(Math.PI / 8) * radius + _loc7, radius + _loc6,
_loc7);
} // End of with
};
-----------------------------------------
here from JPEXS
function drawCircle(target_mc, radius, fillColor, fillAlpha)
{
var _loc6_ = 0;
var _loc7_ = 0;
with(target_mc)
{
lineStyle(1,_loc4_,_loc5_,true,"none","round","round")
moveTo(_loc6_ + _loc3_,_loc7_)
curveTo(_loc3_ + _loc6_,Math.tan(Math.PI / 8) * _loc3_ + _loc7_,Math.sin(Math.PI / 4)
* _loc3_ + _loc6_,Math.sin(Math.PI / 4) * _loc3_ + _loc7_)
curveTo(Math.tan(Math.PI / 8) * _loc3_ + _loc6_,_loc3_ + _loc7_,_loc6_,_loc3_ +
_loc7_)
curveTo((- Math.tan(Math.PI / 8)) * _loc3_ + _loc6_,_loc3_ + _loc7_,(-
Math.sin(Math.PI / 4)) * _loc3_ + _loc6_,Math.sin(Math.PI / 4) * _loc3_ + _loc7_)
curveTo(- _loc3_ + _loc6_,Math.tan(Math.PI / 8) * _loc3_ + _loc7_,- _loc3_ +
_loc6_,_loc7_)
curveTo(- _loc3_ + _loc6_,(- Math.tan(Math.PI / 8)) * _loc3_ + _loc7_,(-
Math.sin(Math.PI / 4)) * _loc3_ + _loc6_,(- Math.sin(Math.PI / 4)) * _loc3_ + _loc7_)
curveTo((- Math.tan(Math.PI / 8)) * _loc3_ + _loc6_,- _loc3_ + _loc7_,_loc6_,- _loc3_
+ _loc7_)
curveTo(Math.tan(Math.PI / 8) * _loc3_ + _loc6_,- _loc3_ + _loc7_,Math.sin(Math.PI /
4) * _loc3_ + _loc6_,(- Math.sin(Math.PI / 4)) * _loc3_ + _loc7_)
curveTo(_loc3_ + _loc6_,(- Math.tan(Math.PI / 8)) * _loc3_ + _loc7_,_loc3_ +
_loc6_,_loc7_)
};
}

Please attach the SWF file when you create an issue.

**Type:**feature→bug

This should be fixed in the latest nightly, please try it.

**State:**new→upgraded

honfika well done :)
looks fine now
close req

**State:**upgraded→closed