Right now it shows "undefined" in the timer I am building. Presently, this is the first part of the code for a timer module:
xmlns:mdi="org.bigbluebutton.common.*"
xmlns:flc="flexlib.controls.*"
implements="org.bigbluebutton.common.IBbbModuleWindow"
creationComplete="onCreationComplete()"
title="{ResourceUtil.getInstance().getString('bbb.timer.title')}"
showCloseButton="false">
This is what is in bbbResources.properties:
bbb.timer.title = Timer
bbb.timer.titleBar = Timer Window title bar
bbb.timer.quickLink.label = Timer Window
Please note that I have also added this TimerConfig.as file to ~bigbluebutton/clients/flash/web-client/src/org/bigbluebutton/web/timer:
package org.bigbluebutton.web.timer {
import org.bigbluebutton.web.timer.views.TimerWindow;
import org.bigbluebutton.web.timer.views.TimerWindowMediator;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
import robotlegs.bender.framework.api.IConfig;
import robotlegs.bender.framework.api.IInjector;
public class TimerConfig implements IConfig {
[Inject]
public var injector:IInjector;
[Inject]
public var mediatorMap:IMediatorMap;
public function configure():void {
dependencies();
mediators();
}
/**
* Specifies all the dependencies for the feature
* that will be injected onto objects used by the
* application.
*/
private function dependencies():void {
//injector.map(ITimerMessageService).toSingleton(TimerMessageService);
}
/**
* Maps view mediators to views.
*/
private function mediators():void {
mediatorMap.map(TimerWindow).toMediator(TimerWindowMediator);
}
}
}
Also, here are TimerWindow.as and TimerWindowMediator.as in ~bigbluebutton/clients/flash/web-client/src/org/bigbluebutton/web/timer/views:
package org.bigbluebutton.web.user.views {
import mx.controls.Button;
import mx.core.ClassFactory;
import org.apache.flex.collections.ArrayList;
import org.bigbluebutton.web.window.views.BBBWindow;
import org.osflash.signals.Signal;
public class TimerWindow extends BBBWindow {
public function TimerWindow() {
super();
title = "Timer";
width = 300;
height = 400;
}
}
}
package org.bigbluebutton.web.timer.views {
import flash.events.MouseEvent;
import robotlegs.bender.bundles.mvcs.Mediator;
public class TimerWindowMediator extends Mediator {
[Inject]
public var view:TimerWindow;
override public function initialize():void {
}
override public function destroy():void {
super.destroy();
view = null;
}
}
}
Do I have to do some sort of build command from somewhere other than in the ~/bigbluebutton/bigbluebutton-client directory, since that is where the above ActionScript files are located? Do you have any suggestions? What am I missing? TIA.