Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/also/echo-nest-flash-api
Unofficial Flash API for the Echo Nest API
https://github.com/also/echo-nest-flash-api
Last synced: 3 months ago
JSON representation
Unofficial Flash API for the Echo Nest API
- Host: GitHub
- URL: https://github.com/also/echo-nest-flash-api
- Owner: also
- License: mit
- Archived: true
- Created: 2009-07-07T23:58:02.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T19:30:29.000Z (about 6 years ago)
- Last Synced: 2024-06-23T23:43:25.057Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 432 KB
- Stars: 14
- Watchers: 6
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-actionscript-sorted - echo-nest-flash-api - Unofficial Flash API for the Echo Nest API (API / Other API)
README
echo-nest-flash-api
===================An ActionScript 3 interface for the the Echo Nest API.
http://github.com/also/echo-nest-flash-api
Getting the source
==================You’ll need to clone the source from github:
git clone git://github.com/also/echo-nest-flash-api.git
Including in your project
=========================Add both `echo-nest-flash-api/src` to your classpath. Your Flash, Flex, or mxmlc documentation tells you how to do this.
Using the API
=============echo-nest-flash-api implements a small subset of the [Echo Nest v4 API track methods][1].
Upload
------```actionscript
var fileReference:FileReference;private function chooseFile():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, function(e:Event):void {
uploadFile();
});
fileReference.browse();
}private function uploadFile():void {
trackApi.uploadFileReference({track: fileReference}, {
onResponse: function(track:Object):void {
trace('id: ' + track.id + ', md5: ' + track.md5); // id: TRMVA0211BC6E08329, md5: 2f45abacba9e9d2312afa63a8df10d23
},
onEchoNestError: function(error:EchoNestError):void {
trace(error.code + ': ' + error.description);
}
});
}
```License
=======Copyright 2009-2011 Ryan Berdeen. All rights reserved.
Distributed under the terms of the MIT License.
See accompanying file LICENSE.txt[1]: http://developer.echonest.com/docs/v4/track.html