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 issues#206 AS3 switch problem
Author: focus
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3
State: closed
Hey, I see something strange in the method netStatusHandler of the MainTimeline class in
the attached file.
It should be:
public function netStatusHandler(param1:NetStatusEvent):void
{
switch (param1.info.code)
{
case "NetStream.Play.StreamNotFound":
trace(("Stream not found: " + strSource));
return;
case "NetStream.Play.Stop":
if ((intActiveVid + 1) < xmlPlaylist..vid.length())
{
playNext();
}
else
{
stopVideoPlayer();
};
return;
};
}
But I see
public function netStatusHandler(param1:NetStatusEvent) : void {
if("NetStream.Play.StreamNotFound"!==_loc2_)
{
if("NetStream.Play.Stop"===_loc2_)
{
}
}
return;
}
I guess it could be because if the double dot operator (..) used with xml variable.
videoplayer.prt2.swf (13 KiB)
Same problem in com.hurlant.util.der.DER:
if(0!==_loc23_)
{
if(16!==_loc23_)
{
if(17!==_loc23_)
{
if(2!==_loc23_)
{
if(6!==_loc23_)
{
if(3!==_loc23_)
{
if(4!==_loc23_)
{
if(5!==_loc23_)
{
if(19!==_loc23_)
{
if(34!==_loc23_)
{
if(20!==_loc23_)
{
if(23===_loc23_)
{
}
}
}
}
}
}
}
}
}
}
}
}
Something wrong with switch operator handling in AS3.
library.swf (194 KiB)
State: new→opened
Title: AS3 Decompilation issue→AS3 switch problem
Version 1.6.6 was released.
This should be fixed, try it.
State: opened→upgraded
Yey, new build!!
Looks fine now, thanks!
State: upgraded→closed