~~NOTOC~~
====== BEScreen ======
---- dataentry extension ----
type : extension
author_mail : briancensor@gmail.com Brian Ensor
description : An easy way to handle orientation
lastupdate_dt : 2011-04-11
compatible : v1.2
depends :
tags : orientation, rotation, rotate, landscape, portrait
homepage_url : https://github.com/brianensorapps/BEScreen
download_url : https://github.com/brianensorapps/BEScreen/zipball/master
----
===== Usage =====
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];
===== Changelog =====
* //2011/02/14 02:58//: First public version
===== Source Code =====
https://github.com/brianensorapps/BEScreen
===== Discussion =====
//No comments so far. Feel free to edit this part of the page.//