It is from inside 'Brownie CSS' by Nahuel Foronda from asfusion.com: public function SmartPanelSkin() { super(); } override mx_internal function drawBorder(w:Number, h:Number):void { super.drawBorder(w,h);
var dropShadowStyleName:* = getStyle("dropShadowStyleName"); if(dropShadowStyleName) { var dropShadowCSS:CSSStyleDeclaration = StyleManager.getStyleDeclaration("." + dropShadowStyleName); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.quality = 3; //line 39// var size:* = dropShadowCSS.getStyle("size"); var distance:* = dropShadowCSS.getStyle("distance"); var alpha:* = dropShadowCSS.getStyle("alpha"); var angle:* = dropShadowCSS.getStyle("angle"); if(size != undefined) { dropShadow.blurX = size; dropShadow.blurY = size; } if(distance != undefined) dropShadow.distance = distance; if(alpha != undefined) dropShadow.alpha = alpha; if(angle != undefined) dropShadow.angle = angle; filters = [dropShadow]; } } override mx_internal function drawBackground(w:Number, h:Number):void { super.drawBackground(w,h); if(!parent || backgroundComplete) return; backgroundComplete = true; var headerSkin:Class = getStyle("headerSkin"); if(headerSkin && parent is Panel) { var headerInstance:DisplayObject = new headerSkin(); //if(headerInstance is IStyleClient) IStyleClient(headerInstance).styleName = parent; headerInstance.width = w; headerInstance.height = getStyle("headerHeight"); var panel:Panel = Panel(parent); panel.rawChildren.addChildAt(headerInstance,2); }--- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > What does line 39 of SmartPanelSkin look like? And a few surrounding lines > as well. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of one_rabbit_one > Sent: Sunday, March 29, 2009 12:04 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Modules error issue > > > Can anyone please throw any light on this? > > I have a project with four modules in it, skinned with 'Brownie' CSS. If > there is an error - the alert does not fire,instead I get this 1009 error: > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > at > assets.assets_Brownie.skins::SmartPanelSkin/http://www.adobe.com/2006/flex/mx/internal::drawBorder()[/Users/inkthing/Sites/flex/InkyMod/src/assets/assets_Brownie/skins/SmartPanelSkin.as:39] > at > mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\skins\halo\HaloBorder.as:233] > at > mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421] > at > mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622] > at > mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695] > at Function/http://adobe.com/AS3/2006/builtin::apply() > at > mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] > at > mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568] >