調べればすぐに出てくるが、FLASHで動的パラメータを指定する方法。
HTMLのswf指定タグで、次のように記述する。
1 |
<param name="flashvars" value="hoge=aaa&foo=bbb". |
FLASHでこの値を読み込むには、
1 2 |
trace(_root.hoge); trace(_root.foo); |
とすれば良い。
ちなみに<embed>タグの場合は、
1 |
<embed flashvars="hoge=aaa&foo=bbb" ... > |
だが、たしか<embed>タグはXHTMLでは未サポートだったと思う。
W3CのHTML構文チェックでNGになるし、Doctype宣言などを厳格に行うとFirefoxでは表示されなかったはず。
No comments yet. You should be kind and add one!
By submitting a comment you grant typista a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.