Index: lams_flash/src/central/flex/VideoRecorder/src/VideoRecorder.mxml =================================================================== RCS file: /usr/local/cvsroot/lams_flash/src/central/flex/VideoRecorder/src/VideoRecorder.mxml,v diff -u -r1.4.2.2 -r1.4.2.3 --- lams_flash/src/central/flex/VideoRecorder/src/VideoRecorder.mxml 19 May 2009 04:57:19 -0000 1.4.2.2 +++ lams_flash/src/central/flex/VideoRecorder/src/VideoRecorder.mxml 20 May 2009 05:47:14 -0000 1.4.2.3 @@ -126,14 +126,14 @@ contentEditable = true; userId = 1; toolSessionId = 1; - toolContentId = 5; + toolContentId = 1; allowUseVoice = true; allowUseCamera = true; allowComments = true; allowRatings = true; allowLearnerVideoVisibility = true; - red5ServerUrl = "rtmp://172.20.100.22/"; - serverUrl = "http://172.20.100.220:8080/lams/"; + red5ServerUrl = "rtmp://localhost/"; + serverUrl = "http://localhost:8080/lams/"; mode = AUTHOR_MODE; } } @@ -429,7 +429,7 @@ } // bw detection handler - public function onBWDone(infoObject:Object):void { + public function onBWDone(infoObject:Object=null):void { // print its properties trace(VideoDisplayUtil.printInfoObject(infoObject, "onBWDone")); } @@ -724,7 +724,7 @@ viewCameraButton.enabled = true; viewCameraButton.toolTip = dictionary.getLabel("videorecorder.tooltip.start.camera"); - + getDetailsPopUp = GetRecordingDetailsPopUp(PopUpManager.createPopUp(this, GetRecordingDetailsPopUp, true)); PopUpManager.centerPopUp(getDetailsPopUp); getDetailsPopUp.init(dictionary); @@ -742,7 +742,7 @@ // change the view camera button's label viewCameraButton.label = dictionary.getLabel("videorecorder.stop.camera"); viewCameraButton.toolTip = dictionary.getLabel("videorecorder.tooltip.stop.camera"); - + // set panel status label videoRecorderPanel.status = dictionary.getLabel("videorecorder.waiting"); @@ -756,7 +756,7 @@ private function onStopCamera(event:VideoDisplayEvent):void{ // change the view camera button's label viewCameraButton.label = dictionary.getLabel("videorecorder.view.camera"); - viewCameraButton.toolTip = dictionary.getLabel("videorecorder.tooltip.start.camera"); + viewCameraButton.toolTip = dictionary.getLabel("videorecorder.tooltip.start.camera"); // set panel status label videoRecorderPanel.status = dictionary.getLabel("videorecorder.waiting"); @@ -839,15 +839,15 @@ } // if videoRecordings is defined - if(videoRecordings){ + if(videoRecordings != null){ var length:int = videoRecordings.length(); // get children from videoList and enable/disable for(var i:int = 0; i < length; i++){ var videoProfile:VideoProfile = VideoProfile(videoList.indexToItemRenderer(i)); var deleteButton:Button = videoProfile.deleteButton; - if(deleteButton){ + if(deleteButton != null){ deleteButton.enabled = enabled; if(enabled)