Get Fonts through Flash ans JS

254 views Asked by At

I have to check all available fonts istalled on user's system. Therefore, I try to use this tutorial. I compiled Fontlist.as with mxmlc compiler and included a JS file, which contains the populateFontList(fontArr) function. I embed the SWF file with:

$("#flash").flash(
  {
    "src": "FontList.swf",
    "width": "1",
    "height": "1",
    "swliveconnect": "true",
    "id": "getfonts",
    "name": "getfonts"
   },
   { update: false }
);

If I open the page, it the SWF file will be embeded to the <div id="flash"></div> but the populateFontList(fontArr) function isn't fired.

Is there any trap which I fell in?

I would welcome every advise. Many thanks!

Daniel

1

There are 1 answers

0
Daniel On BEST ANSWER

Ok I got it. My problem was, that I testet it locally. I installed the Flash Debugger and realised, that there was a security error #2060. The solution was to add the local path to flash player's global settings:

Global Settings