BEScreen makes it easy to set and rotate between orientations automatically. It supports all iOS devices and also sends events upon rotation.
Adding to your stage:
mScreen = [BEScreen screenWithOrientation:BEScreenOrientationPortrait rotates:YES allowAllOrientations:YES]; [self addChild:mScreen]; [mScreen addEventListener:@selector(orientationChanged:) atObject:self forType:BE_SCREEN_EVENT_ORIENTATIONCHANGED];
Adding SPDisplayObjects to BEScreen:
SPQuad *quad = [SPQuad quadWithWidth:100 height:100 color:0xff0000]; quad.x = 50; quad.y = 50; [mScreen addChild:quad];
No comments so far. Feel free to edit this part of the page.