# Runtime assets

**URL:** <https://forum.kirupa.com/t/runtime-assets/234819>\
**Category:** Uncategorized\
**Created:** [August 6, 2007, 1:40pm UTC](https://forum.kirupa.com/t/runtime-assets/234819 "2007-08-06T13:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sger\_error](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sger\_error](https://forum.kirupa.com/u/sger_error)\
**Post date:** [August 6, 2007, 1:40pm UTC](https://forum.kirupa.com/t/runtime-assets/234819/1 "2007-08-06T13:40:41Z")

</div>

var loaderContext:LoaderContext = new LoaderContext();  
loaderContext.applicationDomain = ApplicationDomain.currentDomain;

```
        var loader:Loader = new Loader();
        loader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
        loader.load(new URLRequest("http://www.website.com/Fonts.swf"), loaderContext);

```

private function onInit(event:Event):void{  
//loading external swf  
}

in the server all is working good.

compile from local Main.as heres my error

ArgumentError: Error #1508: The value specified for argument font is invalid.  
at flash.text::Font$/registerFont()  
at Fonts$iinit()

any help?
