Avatar


Scenario 1

Description: Create an AvatarImage object from a local image file

var av = new Avatar().load("mypic.jpg");
user(0).avatar = av;

Scenario 2

Description: Create an AvatarImage object from a remote image file

var av = new Avatar();
av.src = "http://www.codeplex.com/mypic.jpg";

av.oncomplete = function (e)
{
    if (e)
        user(parseInt(this.arg)).avatar = this;
}

av.download(0);

Last edited Dec 10, 2012 at 5:29 PM by oobenoob, version 2