Flash J2PlayController.sendPlatformEvent
From J2Play
Contents |
Description
Send a message to platform server and trigger a platform event.
Syntax
public function sendPlatformEvent( p_username: String, p_id : Number, p_properties : ca.j2x.flash.util.Map) : Void;
Parameters
* @param p_username the username to identify the user. * @param p_id event identity * @param p_properties Map of event properties. Every property in properties map is a pair of propertyID => value.
Return Value
N/A
Examples
For example, for "spell a long word" badge in Linguo, it's badge event id is 120, and it has one property for the word length. This property id is 24, value is the length of word
import ca.j2x.flash.util.Map;
var properties:Map=new Map();
properties.set("24",false, word.length);
controller.sendPlatformEvent(controller.getUsername(),120,properties);
