var syncFlashHx = function () { var that = this; that.setTimeCode = function (seconds) { return Framewelder_flash_player_v2_remoting.setTimeCode("flash_player", seconds); }; that.getTimeCode = function () { return Framewelder_flash_player_v2_remoting.getTimeCode("flash_player"); }; //TODO: abstract this function since it might not belong as part of interface that.getScrubBarTimeFromLastAccess = function () { return Framewelder_flash_player_v2_remoting.getScrubBarTimeFromLastAccess("flash_player"); } return that; };