Uploading and embedding fonts during runtime

[COLOR=#000000][FONT=verdana]Good day.[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]I’m stuck with the following issue:[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]I have multiple fonts embedded into my application, but i can’t embed them all, so i want the user to upload his *.ttf file, and then i want to embed it into my application, all this during runtime, and using only AS3/flex.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]All i can think of right now, is upload the file to the server, compile an swf there which has the custom font embedded (i have an idea about how i should link the path to the font), and then load this swf into my main application.[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]But this is hardcore, basically i have send an instruction to the compiler in order to create the swf with my font (and i have no idea how to do that), as well as keep the whole SDK on the server.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]Any other ideas on how to do this?[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]Anything would be appreciated, as i’m really stuck with this one.[/FONT][/COLOR]