this.guidance = new nokia.maps.pfw.GuidanceModel(this._pluginControl, this.routing, this.position, this.map);
var GuidanceModel = new Class({ Name: "GuidanceModel", Implements: [EventSource, Destroyable], _currentRoute: null, _MANEUVER_ICONS: null, _guidance: null, initialize: function (aPluginControl, aRoutingModel, aPositionModel, aMapModel) { var modelInstance = nokia.maps.pfw.PlayerManager.getModelInstance(aPluginControl, this.className); if (modelInstance) { return modelInstance } else { nokia.maps.pfw.PlayerManager.addModelInstance(aPluginControl, this.className, this) } this._pluginControl = aPluginControl; try { this._guidance = this._pluginControl.getGuidance(); } catch (ex) { this._guidance = null } if (!this._guidance) { this._guidance = new GuidanceMockup(); } this._guidance.setOnGuidanceDone(bind(this, this._onGuidanceDone)); this._routeModel = aRoutingModel; this._mapModel = aMapModel; this._positionModel = aPositionModel; }, isGuidanceSupported: function () { return this._guidance !== null && this._guidance !== undefined && this._guidance.className !== "GuidanceMockup" }, etc etc
this._pluginControl = this._page.getChildAt("plugin"); . . . this.guidance = new nokia.maps.pfw.GuidanceModel(this._pluginControl, this.routing, this.position, this.map);
<body> <textarea cols="95" rows="5" id="recmsg"></textarea> </body>
<script type="text/javascript" id="javascriptApplication"> try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var cPLX = Components.classes["@nokia.com/MapsPlugin"].getService(Components.interfaces.IPlugin); } catch (e) { var cPLX = null; } [B]//here here function writemessage(e){ var txt = e; var tbox = document.getElementById('recmsg'); if (tbox) { tbox.value = tbox.value + "\n" + txt; tbox.scrollTop = tbox.scrollHeight - tbox.clientHeight; }; }[/B]