Skip to content

Instantly share code, notes, and snippets.

@itaiferber
Created November 10, 2008 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itaiferber/23652 to your computer and use it in GitHub Desktop.
Save itaiferber/23652 to your computer and use it in GitHub Desktop.
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var backgroundWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
windowContentView = [backgroundWindow contentView];
[windowContentView setBackgroundColor:[CPColor darkGrayColor]];
var movie = [CPFlashMovie flashMovieWithFile:[CPString stringWithString:@"/Users/itaiferber/Desktop/Lore3433.swf"]],
movieView = [[CPFlashView alloc] initWithFrame:CGRectMake(CGRectGetWidth([windowContentView bounds]/2-400), CGRectGetHeight([windowContentView bounds])/2-300, 800, 600)];
[movieView setFlashMovie:movie];
[windowContentView addSubview:movieView];
[backgroundWindow orderFront:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment