How sharmaamit/leapmotionas3 works
LeapMotionAS3 is an ActionScript 3 client framework for Leap Motion tracking, with an optional AIR Native Extension and a socket fallback. The principal workflow is application code creating a Controller, receiving lifecycle/frame events, and consuming typed Frame and hand/pointable/gesture data. The README also documents configuration, calibrated-screen/device queries, and gesture support. Native excerpts show FRE dispatch and device serialization; ActionScript implementation details were not sampled, so links beyond documented behavior are omitted or marked unverified.
Main entry points: Controller.as Controller · Frame.as Frame Data · LNLeapDevice.cpp Native Device · LNExtension.cpp FRE Dispatcher
Components 22
ActionScript API
- Controller
src/com/leapmotion/leap/Controller.as - Listener Callbacks
src/com/leapmotion/leap/Listener.as - Leap Events
src/com/leapmotion/leap/events/LeapEvent.as
Tracking Features
- Frame Data
src/com/leapmotion/leap/Frame.as - Hands And Fingers
src/com/leapmotion/leap/Hand.as - Pointables And Tools
src/com/leapmotion/leap/Pointable.as - Gesture Types
src/com/leapmotion/leap/Gesture.as - Screen Queries
src/com/leapmotion/leap/Screen.as - Device Queries
src/com/leapmotion/leap/Device.as - Configuration
src/com/leapmotion/leap/Config.as
AIR Native Extension
- Native Bridge
src/com/leapmotion/leap/native/LeapNative.as - FRE Dispatcher
native/src/LNExtension.cpp - Native Device
native/src/LNLeapDevice.cpp - Native Listener
native/src/LNLeapListener.cpp - FRE Conversion
native/src/LNFREUtilities.h - FRE API
native/win-visualstudio/LeapNative/FlashRuntimeExtensions.h
Transport And Math
- Socket Transport
src/com/leapmotion/leap/socket/LeapSocket.as - Socket Frame Decode
src/com/leapmotion/leap/socket/LeapSocketFrame.as - Vector And Math
src/com/leapmotion/leap/Vector3.as
Other components
- Application
- Leap Motion Runtime
- AIR Runtime
Connections 22
- Application → Controller: creates
README.md - Application → Leap Events: handles
README.md - Controller → Leap Events: dispatches
README.md - Leap Events → Frame Data: carries
README.md - Frame Data → Hands And Fingers: exposes
README.md - Frame Data → Pointables And Tools: exposes
README.md - Frame Data → Gesture Types: exposes
README.md - Controller → Listener Callbacks: supports callbacks
README.md - Controller → Native Bridge: may use
README.md - Controller → Socket Transport: falls back to
README.md - Native Bridge → FRE Dispatcher: calls
- FRE Dispatcher → Native Device: delegates to
native/src/LNExtension.cpp - Native Device → Native Listener: registers
native/src/LNLeapDevice.cpp - Native Listener → AIR Runtime: dispatches status events
native/src/LNLeapListener.cpp - FRE Dispatcher → FRE Conversion: uses conversions
native/src/LNExtension.cpp - Native Device → FRE API: uses FRE calls
- Native Device → Leap Motion Runtime: reads tracking data
- Controller → Screen Queries: provides queries
README.md - Controller → Device Queries: provides queries
- Controller → Configuration: provides access
- Frame Data → Vector And Math: uses vectors
README.md - Socket Transport → Socket Frame Decode: decodes