Index: lams_common/src/flash/LFWindow.fla =================================================================== diff -u -r99eeb49e53ab4d7f90de5daf4ee6eadfa9c4797b -rdc4dc4644e05f9f37145ea7e4de9792e48e67bcf Binary files differ Index: lams_common/src/flash/LFWindow.swc =================================================================== diff -u -r99eeb49e53ab4d7f90de5daf4ee6eadfa9c4797b -rdc4dc4644e05f9f37145ea7e4de9792e48e67bcf Binary files differ Index: lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFWindow.as =================================================================== diff -u -rd0a7a4c7a96f263687b811e547367cfcfbdd495d -rdc4dc4644e05f9f37145ea7e4de9792e48e67bcf --- lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFWindow.as (.../LFWindow.as) (revision d0a7a4c7a96f263687b811e547367cfcfbdd495d) +++ lams_common/src/flash/org/lamsfoundation/lams/common/ui/LFWindow.as (.../LFWindow.as) (revision dc4dc4644e05f9f37145ea7e4de9792e48e67bcf) @@ -37,8 +37,12 @@ public function init(Void):Void { super.init(); - //trace('LFWindow.init()'); - //contentPath = 'ScrollPane'; + + //set up skin + + skinCloseOver = 'LFCloseButtonOver'; + skinCloseDown = 'LFCloseButtonDown'; + } @@ -106,7 +110,24 @@ public function startDragging(Void):Void { super.startDragging(); } + + /** + * overrides UIObject.setStyle to provide custom style setting + */ + + public function setStyle(styleName:String,styleObj:Object){ + trace('setstyle'); + //Pass it up the inheritance chain to set any inherited styles or non-custom/LAMS style properties + super.setStyle(styleName,styleObj); + //If the button style is to be set then set it + if(typeof(styleObj)=='object'){ + if(styleName=='closeButton'){ + } + } + } + + //Getters+Setters [Inspectable(defaultValue='')] function set scrollContentPath (path:String){ @@ -121,6 +142,4 @@ function set contentPath(value:Object){ } - - } \ No newline at end of file