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.

#33 calling constructor in static const initializer
Author:
googleCode

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3DecompilationGoogle Code
State: closed 

example
package {
import flash.display.MovieClip;
public class Main extends MovieClip {
public static const instance:Main=new Main();
public function Main() {
}
}
}
turns into
package
{
import flash.display.MovieClip;
public class Main extends MovieClip
{
public function Main() {
super();
return;
}
public static const instance:Main = new this();
}
}
- new this(); leads to error in flash builder
-1042: The this keyword can not be used in static methods. It can only be used in instance
methods, function closures, and global code.
Hi,
this bug was already fixed in version 1.4.0
State: →closed
Title: calling constructor in static const initializer→calling constructor in static const initializer
Type: →bug
Visibility: →Everybody
Title: calling constructor in static const initializer→calling constructor in static const initializer
Type: →bug
Visibility: →Everybody