Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 8, 2010 00:42
Show Gist options
  • Save johnlindquist/667238 to your computer and use it in GitHub Desktop.
Save johnlindquist/667238 to your computer and use it in GitHub Desktop.
package
{
import flash.display.Sprite;
public class HelloWorld extends Sprite
{
public function HelloWorld()
{
new Foo();
(Foo as Object).constructor = function()
{
trace("world");
}
new (Foo as Object).constructor;
}
}
}
class Foo extends Object
{
public function Foo()
{
trace("hello");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment