/SoundCloud-As3-API

soundcloud as3 wrapper swc

Primary LanguageActionScript

Soundcloud AS3 wrapper

This is a Soundcloud API WRAPPER written in AS3. It uses the robotlegs framework with as3 signals.

Installation

The simplest way to use it is to download the SoundcloudAPI.swc and drop it into the lib directory of your project. Otherwise I would checkout it out and compile your own .swc

Usage

Better examples to come.

If you're familiar with Robotlegs then posting a track is as simple as doing this:

  1. In yourAppContext add credentials

    soundcloudBus.startupRequest.dispatch( new CredentialVO( SoundcloudCredentials.CLIENT_ID, SoundcloudCredentials.CLIENT_SECRET, SoundcloudCredentials.REDIRECT_URI ));

  2. In a mediator, Post a new track

    //Inject the signal bus
    [Inject]
    public var soundcloudBus:SoundcloudSignalBus; soundcloudBus.postTrackRequest.dispatch( trackVO );

  3. In a command, handle post response

    [Inject]
    public var soundcloudBus:SoundcloudSignalBus; soundcloudBus.postTrackResponse.add( onResult_postTrack );

TODO

  1. Write better documentation
  2. Test soundcloud oauth refresh token
  3. Continue fleshing out the API