Index: lams_central/src/flash/org/lamsfoundation/lams/authoring/tk/TemplateActivity.as =================================================================== diff -u -r7b855245133f01885c4b7f1d85beb3e91675bb40 -r6c14acb61d067c3d26b9105dd528fed9453c5c9e --- lams_central/src/flash/org/lamsfoundation/lams/authoring/tk/TemplateActivity.as (.../TemplateActivity.as) (revision 7b855245133f01885c4b7f1d85beb3e91675bb40) +++ lams_central/src/flash/org/lamsfoundation/lams/authoring/tk/TemplateActivity.as (.../TemplateActivity.as) (revision 6c14acb61d067c3d26b9105dd528fed9453c5c9e) @@ -49,8 +49,6 @@ private var _instance:TemplateActivity; private var icon_mcl:MovieClipLoader; private var _taPanelStyle:Object; - - //this is set by the init object //contains refs to the classInstances of the activities in this TemplateActivity private var _activities:Array; @@ -192,13 +190,19 @@ * Does the visual rendering work of this TemplateActivity */ private function draw():Void{ - title_lbl.text=_mainActivity.title; + var toolTitle:String = _mainActivity.title + if (toolTitle.length > 15){ + toolTitle = toolTitle.substr(0, 15)+"..." + } + title_lbl.text= toolTitle; //attach the icon now... - var ICON_OFFSET = 2; + var ICON_OFFSETX = 3; + var ICON_OFFSETY = 6; icon_mc._width = 20; icon_mc._height = 20; - icon_mc._x = ICON_OFFSET; - icon_mc._y = ICON_OFFSET; + icon_mc._x = ICON_OFFSETX; + icon_mc._y = ICON_OFFSETY; + //toolTip.text = _mainActivity.title; //Debugger.log('icon_mc._width:'+icon_mc._width,4,'draw','TemplateActivity'); //Debugger.log('icon_mc._height:'+icon_mc._height,4,'draw','TemplateActivity'); } @@ -276,10 +280,15 @@ private function rollOver():Void{ bkg_pnl.setStyle("backgroundColor",0xFFFFFF); bkg_pnl.setStyle("borderStyle","outset"); + _toolkitView.showToolTip("test"); + } private function rollOut():Void{ bkg_pnl.setStyle("styleName",_taPanelStyle); + _toolkitView.hideToolTip(); + //toolTip._visible = false; + //removeMovieClip(toolTip); }