The 'postFlashEvent' command has the following interface:
'postFlashEvent', breadcrumb [, hostingUrl][, optionalVariables]
Example of use:
// When tracking from a Flash movie. It's a good idea to make a global
// javascript function you send events information to from inside Flash.
function flashTrack(breadCrumb) {
$netminers.push(
['postFlashEvent', breadCrumb]
);
}
The AS3/Flash source file:
import flash.external.*
var btn:MovieClip = createButton(100, 100);
btn.onPress = function() {
var breadbrumb = 'Frontpage/Product/Dolls/Customize Barbie';
// Track directly from Flash
ExternalInterface.call('$netminers.push', new Array("postFlashEvent", breadbrumb));
// Or try calling the javascript function in Flash (a preferred approach)
ExternalInterface.call('flashTrack', breadbrumb);
}
function createButton(width:Number, height:Number):MovieClip {
var mc:MovieClip = this.createEmptyMovieClip("mc");
...
return mc;
}