Apache Flex
  1. Apache Flex
  2. FLEX-28568

RTE loading font style module in sub-application when SWFLoader.loadForCompatibility is used

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      Steps to reproduce:
      1. Open provided zip file
      2. launch 'myMainApp.html' in the bin-debug folder
      3. The main application will load the sub-application 'mySubApp.swf'
      4. 'mySubApp.swf' will load in a font style module created from CSS called 'en_US_Fonts.swf'

      Actual Results:
      The following RTE is displayed:

      ArgumentError: Error #1508: The value specified for argument font is invalid.
      at flash.text::Font$/registerFont()
      at en_US_Fonts/setStyleDeclarations()[C:\DEVELOPMENT\workspace_flex45\SUBAPP_FONT_LOADING\bin-debug\generated\en_US_Fonts-generated.as:85]
      at Function/<anonymous>()[E:\dev\hero_private\frameworks\projects\framework\src\mx\styles\StyleManagerImpl.as:1522]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at ModuleInfoProxy/moduleEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1149]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at ModuleInfo/readyHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\modules\ModuleManager.as:793]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::FlexModuleFactory/update()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:535]
      at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:681]
      at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:131]

      Expected Results:
      No RTE is displayed and font is applied only to the sub-application since loadForCompatibility is used so the font should be in the sub-applications applicationDomain.

      Workaround (if any):
      None known

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Adobe JIRA
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development