1 Reply Latest reply on Feb 27, 2010 8:52 PM by Flex harUI

    Stack overflow when skinning Canvas using borderSkin

    bre_an Level 1

      Hi,

       

      I think I found a little bug in Flex 3/4 SDK (tested on both):

      I just tried to skin a Canvas using with borderSkin and discovered this:

      An ActionScript error has occurred:
      Error: Error #1023: Stack overflow occurred.
          at ModuleManagerImpl/getAssociatedFactory()[C:\autobuild\galaga\frameworks\projects\framewor k\src\mx\modules\ModuleManager.as:150]
          at mx.modules::ModuleManager$/getAssociatedFactory()[C:\autobuild\galaga\frameworks\projects \framework\src\mx\modules\ModuleManager.as:64]
          at mx.core::UIComponent/getClassStyleDeclarations()[C:\autobuild\galaga\frameworks\projects\ framework\src\mx\core\UIComponent.as:7671]
          at mx.styles::StyleProtoChain$/addProperties()[C:\autobuild\galaga\frameworks\projects\frame work\src\mx\styles\StyleProtoChain.as:175]
          at mx.styles::StyleProtoChain$/addProperties()[C:\autobuild\galaga\frameworks\projects\frame work\src\mx\styles\StyleProtoChain.as:205]
          at mx.styles::StyleProtoChain$/addProperties()[C:\autobuild\galaga\frameworks\projects\frame work\src\mx\styles\StyleProtoChain.as:205]

       

      you can simply reproduce this by using the following 2 mxml-files:

      Main.mxml:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
          <mx:HBox width="100" height="100" borderSkin="{Shadow}" />
      </mx:Application>

       

      Shadow.mxml:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" />