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 : http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html

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 : http://stackoverflow.com/questions/22875712/externalinterface-callback-not-working-in-fancybox

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.

CSS3 Animations

to implement CSS3 Animations , you need to part:
1 write a Rule
2 assign the Rule in CSS element

EX:
1 Write the Rule,
they are the same ,but for different browser:
/* Chrome, Safari, Opera */
@-webkit-keyframes myfirst
{
0% {background: red;}
25% {background: yellow;}
50% {background: blue;}
100% {background: green;}
}

/* Standard syntax */
@keyframes buy viagra online myfirst
{
0% {background: red;}
25% {background: yellow;}
50% {background: blue;}
100% {background: green;}
}

2 Then assign the rule :

div
{
-webkit-animation: myfirst 5s; /* Chrome, Safari, Opera */
animation: myfirst 5s;
}

Detail of the CSS Animation properties :
div
{
/* Chrome, Safari, Opera */
-webkit-animation-name: myfirst;
-webkit-animation-duration: 5s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 2s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-play-state: running;
/* Standard syntax */
animation-name: myfirst;
animation-duration: 5s;
animation-timing-function: linear;
animation-delay: 2s;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
}

【备忘】Windows的命令行下设置网络代理 | 秋露

【备忘】Windows的命令行下设置网络代理在公司访问网络的时候,需要设置代理,设置浏览器的代理是相当的方便了。但有的时候要使用命令行,就需要自己设置了(貌似只要浏览器设置好了,可以直接使用命令行,但我们公司的借,需要有用户名和密码,如果没有使用浏览器先输入的话,在命令行下还是无法访问网络的),设置的方式也比较简单,只需要设置http_proxy,http_proxy_user和http_proxy_pass三个环境变量就可以了。在命令行下,执行如下命令:set http_proxy=http://proxy.com:port/set http_proxy_user=usernameset http_proxy_pass=password之后就可以通过代理访问网络了。如果不想每次都设置,可以将这些环境变量,设置到系统的环境变量中。右击我的电脑–>属性–>高级–>环境变量–>系统变量,用新建的方式去设置代理服务器。

via 【备忘】Windows的命令行下设置网络代理 | 秋露.