Flash RemoteProfile.loadProfileImage

From J2Play

Jump to: navigation, search

Contents

Description

Gets the profile image of a specified user.

Syntax

public function loadProfileImage(
  username : String, 
  target : MovieClip);

Parameters

* @param username defines the user name or id for which the profile image is retrieved
* @param target defines the target movieclip for which will be receiving the loaded image

Return Value

N/A

Examples

Here is the example to retrieve the current user's profile image:

 import ca.j2x.flash.IController;
 import ca.j2x.flash.IRemoteProfile;
 
 var profile:IRemoteProfile = controller.getRemoteProfile();
 
 // holderClip is an instance of an empty movieclip in your project
 profile.loadProfileImage(j2play.getUsername(), holderClip);
Personal tools