やまものブログ

メモ書きブログです (^_^;A

Flash コンテンツ ~ sample05 (テキスト表示) 追加

先週の続きで S.S.Planning さんの無償サンプルを Apache に置きました。

今回のサンプルはこれ↓です
Flashのテキストをタイピングしているように表示するサンプル

イメージ 1

先週と同じく、swf ファイルに "chmod a+r" で読み出し権を追加します。
これが唯一の注意点でした。

この時点でのディレクトリの構造です。
/var/www/html/flash0
├── index.html
├── js
│ └── swfobject.js
├── mp3
│ ├── list.txt
│ ├── sound_01.mp3
│ └── sound_02.mp3
├── mp3player.swf
├── password.swf
├── s2.swf
├── s2img
│ ├── 01.jpg
│ ├── 02.jpg
│ ├── s2.txt
│ └── s2.xml
├── sample02.html
├── sample03.html
├── sample04.html
├── sample05.html
└── type.swf

sample05.html
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>typing-SWFObject</title>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("type.swf", "typing", "300", "130", "6", "#000000");
</script>
</head>
<body bgcolor="#333333"><div align="center">
<div id="typing"> </div>
</body>
</html>

ダウンロードした sample05.zip の中には拡張子が "as" のファイルがあって、表示する文字列などが含まれていました。"as" は Action Script の意味らしく、これをもとにフラッシュを作成したようです。作成にはアプリが必要な雰囲気です