Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (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];
- }
Add Comment
Please, Sign In to add comment