swf : calling functions declared via ExternalInterface.addCallback fails · Issue #846 · fancyapps/fancyBox · GitHub

There are two points of failure here :

1 ) the id of the SWF object element is currently set to ‘fancybox-swf’ which contains one of the proscribed characters according to Adobe documentation :

excerpt : "Note: When embedding SWF files within an HTML page, make sure that the id attribute is set and the id and name attributes of the object and embed tags do not include the following characters: . – + * / \"

2 ) in some browsers you must get a reference to the object element and in others you must get a reference to the embed element in order to call the ActionScript function (‘callback’) from JavaScript. The embed element is not currently given an id at all.

I see three levels of solution :

1 ) Fix the ‘-‘ in the id of object and add a different id to embed in order to facilitate a ‘roll-your-own’ solution

2 ) Add an API that returns a reference to the Flash Player by function name : like getFlashPlayerForFunctionCall( functionName )

3 ) Full boat solution ‘callActionScriptFunction( functionName, paramArray ) and then use ‘apply’ to call the function and passthrough/return the result

I documented my workaround on Stack Overflow :

via swf : calling functions declared via ExternalInterface.addCallback fails · Issue #846 · fancyapps/fancyBox · GitHub.

Font LIcense Guide

Jisc Digital Media | Guide….

Fonts: Basic Guide to Font Licensing
Fonts are software for creating and displaying typefaces. As with any software, you need to license font software in order to use it. This document provides a simple guide to font licensing.

Unless it’s handwriting, everything you read and write – in print or onscreen – is conveyed using a specific typeface. Whether you’re reading a book, scrolling through a web page, looking at a poster, typing a letter, or texting a message, the characters you see are represented by particular type designs in the form of fonts.

There are hundreds of thousands of fonts and each design provides a different way to visually communicate the written word. Choosing one font over another can make or break your message, but just as important as selecting the right font is making sure you have the right licence to use it.