Search the Community
Showing results for tags 'classloading'.
Hi, i'm creating a AIR app. The main functionality of the App is downloaded to "ApplicationStorage", and loaded by the "AIR-SWF" (The SWF that makes the AIR App, it's more or less empty, and just loads the main SWF) With LoaderMax i load a fontface class by loading a SWF and then using loader.getClass("myFontClass") to get the Class, then i use Font.registerFont(myFontClass) - It works fine when just running as normal "html/flash-web-app" The problem is when i load above functionality into AIR-SWF, it doesent work anymore. When trying to register the font it gives me: So somehow when in AIR, the getClass("myFontClass") does not return the FontClass So the subload scenerio that fails is abstraclty like this: - I've been doing AS2 for ages, but I'm relatively new to both AS3 and AIR, so any tips are welcome. Note: In publish settings of the loaded SWF's i've set communction to "Local", and i apply System.allowDomain("*") - also i get no security related issues in the process - in short it works, just not when loaded by the AIR-SWF Any help for an old newbie? =)