Created
November 8, 2010 00:42
-
-
Save johnlindquist/667238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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