ブラーの適用

import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();
import flash.filters.BlurFilter;
import flash.filters.BitmapFilterQuality; //任意

var my_blur:BlurFilter = new BlurFilter();
my_blur.blurX = 20;
my_blur.blurY = 20;
my_blur.quality = BitmapFilterQuality.HIGH;//任意

object.filters = [my_blur];

Tweenerの場合

Tweener.addTween(object, {
_Blur_blurX:0,
_Blur_blurY:0,
time:3,
transition:"liner"
});
h.
#import <UIKit/UIKit.h>

@interface webTestViewController : UIViewController {
IBOutlet UIWebView * mywebview;

}

@end

m.

#import "webTestViewController.h"

@implementation webTestViewController
-(void)viewDidLoad{
[super viewDidLoad];
 
NSURL *myurl = [NSURL URLWithString:@"http://www.ventforet.co.jp/sp/"];
NSURLRequest *myrequest = [NSURLRequest requestWithURL:myurl];
[mywebview loadRequest:myrequest];
}
h.
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h> //追加
#import <CoreLocation/CoreLocation.h> // 追加

@interface positionTestViewController : UIViewController <CLLocationManagerDelegate> {
CLLocationManager * lm;
IBOutlet MKMapView *myMapview;

}

@end

m.
#import "positionTestViewController.h"

@implementation positionTestViewController
-(void) viewDidLoad {
[super viewDidLoad];

lm = [[CLLocationManager alloc] init];
lm.delegate = self;
lm.desiredAccuracy = kCLLocationAccuracyHundredMeters;
lm.distanceFilter = kCLDistanceFilterNone;
[lm startUpdatingLocation];
}

-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
MKCoordinateRegion region = myMapview.region;
region.center.latitude = newLocation.coordinate.latitude;
region.center.longitude = newLocation.coordinate.longitude;
region.span.latitudeDelta = 0.01;
region.span.longitudeDelta = 0.01;
[myMapview setRegion:region animated:YES];
}

h.
//フレームワークにCoreLocationを追加
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>

@interface GPStestViewController : UIViewController <CLLocationManagerDelegate> {
CLLocationManager *lm;
IBOutlet UILabel *latLabel;
IBOutlet UILabel *lngLabel;
IBOutlet UIImageView *compassImg;
}

@end


m.
#import "GPStestViewController.h"

@implementation GPStestViewController

-(void)viewDidLoad {
[super viewDidLoad];

lm = [[CLLocationManager alloc] init];
lm.delegate = self;
lm.desiredAccuracy = kCLLocationAccuracyHundredMeters;
lm.distanceFilter = kCLDistanceFilterNone;
[lm startUpdatingLocation];
[lm startUpdatingHeading];
}

-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
latLabel.text = [NSString stringWithFormat:@"軽度=%g", newLocation.coordinate.latitude];
lngLabel.text = [NSString stringWithFormat:@"緯度=%g", newLocation.coordinate.longitude];
}

-(void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)heading {
compassImg.transform = CGAffineTransformMakeRotation(-heading.magneticHeading * M_PI/180);
}


h.
#import <UIKit/UIKit.h>

@interface balltestViewController : UIViewController<UIAccelerometerDelegate> {
IBOutlet UIImageView *ballimg;

}

@end

m.
#import "balltestViewController.h"

@implementation balltestViewController
-(void)viewDidLoad {
[super viewDidLoad];

UIAccelerometer *ac =[UIAccelerometer sharedAccelerometer];
ac.updateInterval = 0.02;
ac.delegate = self;
}

-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
float wx = ballimg.center.x + acceleration.x*20;
float wy = ballimg.center.y + acceleration.y * 20;
if (wx < 25) {
wx = 25;
}
if (wx>295) {
wx = 295;
}
if (wy < 25) {
wy = 25;
}
if (wy > 435) {
wy =435;
}
ballimg.center = CGPointMake(wx, wy);
}

m.
#import "autorotateViewController.h"

@implementation autorotateViewController
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}

h.
#import <UIKit/UIKit.h>

@interface actionsheetViewController : UIViewController<UIActionSheetDelegate> {
IBOutlet UILabel*myLabel;

}
-(IBAction) tapBtn;

@end


m.
#import "actionsheetViewController.h"

@implementation actionsheetViewController
-(IBAction)tapBtn {
UIActionSheet *actionSheet =[[UIActionSheet alloc]
initWithTitle:@"title" delegate:self cancelButtonTitle:@"キャンセル" destructiveButtonTitle:@"注意"
otherButtonTitles:@"処理1" , @"処理2" ,nil];
[actionSheet showInView:self.view];
[actionSheet release];
}

-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
myLabel.text =[NSString stringWithFormat:@"ボタンNo = %d" , buttonIndex];
}

h.
#import <UIKit/UIKit.h>

@interface alertViewController : UIViewController {
IBOutlet UILabel *myLabel;

}

-(IBAction) tapButton;

@end

m.
#import "alertViewController.h"

@implementation alertViewController
-(IBAction) tapButton {
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"確認します" message:@"OKですか?" delegate:self cancelButtonTitle:@"キャンセル" otherButtonTitles:@"OK" , nil];
[alert show];
[alert release];
}

-(void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:
(NSInteger)buttonIndex {
if(buttonIndex == 1) {
myLabel.text = @"OK";
}
else {
myLabel.text = @"キャンセル";
}
}

h.
#import <UIKit/UIKit.h>

@interface switchtestViewController : UIViewController {
IBOutlet UILabel *mylabel;
IBOutlet UISwitch *myswich;

}
-(IBAction)changeSwich;

@end

m.
#import "switchtestViewController.h"

@implementation switchtestViewController

-(IBAction)changeSwich {
if (myswich.on == YES) {
mylabel.text = @"YES";
}else {
mylabel.text = @"NO";
}
}


var dx:Number ;
var dy:Number;

box1_mc.addEventListener(Event.ENTER_FRAME, mousemove);

function mousemove(evt:Event):void {

//ステージのマウス座標からインスタンスまでの距離を求めます
dx = stage.mouseX - box1_mc.x;
dy = stage.mouseY - box1_mc.y;

box1_mc.x += dx/5;
box1_mc.y += dy/5;
}