flex - Error #1065: Variable mx.core::RSLData is not defined -
i'm attempting use loadstyledeclarations on remote swf following code (using flex 4.6):
<?xml version="1.0" encoding="utf-8"?> <s:view xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="homeview" initialize="getfonts()"> <fx:script> public function getfonts():void { stylemanager.loadstyledeclarations("http://dev.mycompany.com/fonts/fonts.swf"); fontlabel.setstyle('fontfamily', 'arial'); } </fx:script> <s:label id="fontlabel" text="this should arial!" top="10" /> </s:view>
as flex web application, works (both target swf , consuming application on same server, different folders). flex mobile (ios) application, error encountered:
referenceerror: error #1065: variable mx.core::rsldata not defined. @ style_mx_core_flexmodulefactory/info()[style_mx_core_flexmodulefactory.as:77] @ mx.core::flexmodulefactory()[e:\dev\4.y\frameworks\projects\framework\src\mx\core\flexmodulefactory.as:107] @ style_mx_core_flexmodulefactory()[style_mx_core_flexmodulefactory.as:35] verifyerror: error #1014: class mx.modules::modulebase not found. verifyerror: error #1014: class mx.core::fontasset not found. referenceerror: error #1065: variable style__embed__font_arial_medium_normal_657631602 not defined. referenceerror: error #1065: variable _class_embed_css_assets_swf_1392078518_mx_skins_cursor_busycursor_762190923 not defined.
any ideas? found 1 solution add "-static-link-runtime-shared-libraries=true" build path did not resolve issue.
Comments
Post a Comment