TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
LWFKit is a framework to using LWF on your Objective-C project powered by Ejecta.
LWFKit
directory into your project.OpenGLES.framework
, CoreText.framework
, CFNetwork.framework
,
QuartzCore.framework
SystemConfiguration.framework
,
libstdc++.dylib
, libicucore.dylib
, LWFKit/Externals/libJavaScriptCore.a
LWFKit/Externals/Ejecta/EJCanvas/2D/Shaders/*
LWFKit/Externals/Ejecta/Ejecta.js
LWFKit/Scripts
"$(SRCROOT)/LWFKit/Externals"
into Header Search Path- (void)viewDidLoad
{
[super viewDidLoad];
LKView *lwf = [[LWView alloc] initWithFrame:CGRectMake(0, 0, 100, 80)];
[lwf load:@"example.lwf" completed:^ {
NSLog(@"loaded");
}];
[self.view addSubView:lwf];
}
// Go to jump frame
[lwf gotoAndPlayWithFrameLabel:@"jump"];
// Go to frame of 10
[lwf gotoAndPlayWithFrameLabel:10];
// Stop timeline
[lwf stop];
You can receive notify from flash event by fscommand
.
// Notify from fscommand('event', 'foo');
[lwf addEventListener:@"foo", handler:^{
NSLog(@"foo fired").
}];
MIT License