Created
November 10, 2008 21:55
-
-
Save itaiferber/23652 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
- (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