LoginSignup
3
3

More than 5 years have passed since last update.

TextExpanderでFlash埋め込み一発コマンド(SWFObjectCDN付)

Last updated at Posted at 2014-01-27

スクリーンショット 2014-01-23 21.37.45.png

いつも背景色の指定の仕方を忘れるので、
ショートカットで対応。

※ Flashのバージョンは10.0.0以上、SWFObjectは2.2を読み込んでいます。

TextExpanderCmd -> ;htflash

sample.cmd
<script src="//cdnjs.cloudflare.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
<!--
Cls.setFlash = function () {
    var swfPath = '%filltext:name=SWFパス%',
        flashvars = {},
        params = {bgcolor: "#%filltext:name=背景色:default=ffffff%"},
        attributes = {},
        setId = '%filltext:name=埋め込み先ID%',
        size = {
            width:  '%filltext:name=幅%',
            height: '%filltext:name=高さ%'
        };
    swfobject.embedSWF(swfPath, setId, size.width, size.height, "10.0.0", null, flashvars, params, attributes);
};
-->
</script>

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3