{"id":13745346,"url":"https://github.com/slikland/LeapMotionAIR","last_synced_at":"2025-05-09T05:31:37.947Z","repository":{"id":6848718,"uuid":"8097362","full_name":"slikland/LeapMotionAIR","owner":"slikland","description":"LeapMotion code to be used wir Adobe AIR AS3","archived":false,"fork":false,"pushed_at":"2013-02-08T17:41:40.000Z","size":195,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T05:06:06.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slikland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-08T17:01:24.000Z","updated_at":"2020-11-12T18:10:47.000Z","dependencies_parsed_at":"2022-08-26T09:22:02.457Z","dependency_job_id":null,"html_url":"https://github.com/slikland/LeapMotionAIR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slikland%2FLeapMotionAIR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slikland%2FLeapMotionAIR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slikland%2FLeapMotionAIR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slikland%2FLeapMotionAIR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slikland","download_url":"https://codeload.github.com/slikland/LeapMotionAIR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819929,"owners_count":17375365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:27.976Z","updated_at":"2024-11-15T17:31:46.814Z","avatar_url":"https://github.com/slikland.png","language":"ActionScript","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"readme":"LeapMotionAIR\n=============\n\nLeapMotion code to be used wir Adobe AIR AS3 3.0 or greater.\n\nIt uses the HTTP WebSocket protocol for HTML5 to communicate.\nIt means, doesn't need to add any native extension, just add the code to your library and you can connect to LeapMotion socket.\n\n\tpublic function Main()\n\t{\n\t\tvar leapSocket:LeapSocket = new LeapSocket();\n\t\tleapSocket.addEventListener(Event.CONNECT, socketConnect);\n\t\tleapSocket.addEventListener(Event.CLOSE, close);\n\t\tleapSocket.addEventListener(IOErrorEvent.IO_ERROR, error);\n\t\tleapSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, error);\n\t\tleapSocket.addEventListener(LeapEvent.DATA, leapData);\n\t\t\n\t\tleapSocket.connect(\"127.0.0.1\", 6437);\n\t}\n\n\tprivate function leapData(event:LeapEvent):void\n\t{\n\t\t// Returns a Frame Object\n\t\t// Frame object: https://developer.leapmotion.com/documentation/api/class_leap_1_1_frame\n\t\t// LeapMotion Javascript tutorial: https://developer.leapmotion.com/documentation/guide/Sample_JavaScript_Tutorial\n\t\ttrace(event.data);\n\t}\n\n\tprivate function error(event:ErrorEvent):void\n\t{\n\t\ttrace(\"Error:\", event.text);\n\t}\n\n\tprivate function close(event:Event):void\n\t{\n\t\ttrace(\"Close\");\n\t}\n\n\tprivate function connect(event:Event):void\n\t{\n\t\ttrace(\"Connect\")\n\t}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslikland%2FLeapMotionAIR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslikland%2FLeapMotionAIR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslikland%2FLeapMotionAIR/lists"}