Skip to content

Instantly share code, notes, and snippets.

@drewbourne
Created October 21, 2010 12:39
Show Gist options
  • Save drewbourne/638402 to your computer and use it in GitHub Desktop.
Save drewbourne/638402 to your computer and use it in GitHub Desktop.
// IMediaRenderer.as
package example
{
public interface IMediaRenderer extends IDataRenderer, IUsesResources, IUsesPermissions
{
}
}
// MediaRenderer.as
package example
{
public class MediaRenderer implements IMediaRenderer
{
include "IDataRendererMixin.as"
include "IUsesResourcesMixin.as"
include "IUsesPermissionsMixin.as"
// rest of impl
}
}
// IUsesResourcesMixin.as
import examples.Resources;
private var _resources:Resources;
public function get resources():Resources
{
return _resources;
}
public function set resources(value:Resources):void
{
_resources = value;
}
// etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment