Created
March 15, 2010 01:43
-
-
Save mimshwright/332408 to your computer and use it in GitHub Desktop.
Solves the lack of interface for DisplayObject
This file contains hidden or 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.DisplayObject; | |
| /** | |
| * An interface to work around the lack of interface for display objects. | |
| */ | |
| public interface IDisplayObject | |
| { | |
| /** | |
| * Returns a representation of the object as a DisplayObject. | |
| * Usually would return the object itself. | |
| */ | |
| function asDisplayObject():DisplayObject; | |
| // function get view():DisplayObject; //would work too if you're into the whole brevity thing. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment