My company is working on an existing project done is AS2. Since this is a skinnable template, they would like to be able to have a choice of approx 20 fonts. Of course this would take a 1/2 hour to compile and be a 5mb download, so we need to load the fonts in dynamically.
So we have 20 compiled fonts, “arial.swf”, “verdana.swf”, etc
And we have our root, “main.swf”
At runtime, main.swf needs to load one of the font swf’s and then be able to use that font.
Here is the trouble: So far as I can tell, AS2 cannot give you access to the linkage ID of an asset you’ve loaded (using MovieClipLoader). I can place an individual instance on the stage, but I’d need to load the swf for each instance.
I tried creating a MC with a textfield in it and linked this to a class, but this doesn’t work.
I also tried to run duplicateMovieClip() on the instance that was loaded, but this doesn’t allow you to relocate the clip to the desired location.
I’m running out of programmatic options and hoping that someone has done this successfully or knows if it is in fact impossible. Thanks for your help.