Git Product home page Git Product logo

echo-nest-flash-api's Introduction

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.

Upload

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

echo-nest-flash-api's People

Contributors

also avatar

Watchers

James Cloos avatar Mrub Shuvo avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.