Set text in flash file containing stuff in the html code
I want to create a flash file containing some text given by HTML code. For example like this:
<object data="text.swf">
<param name="FlashV开发者_运维问答ars" value="text=The given text">
</object>
But i don't have such swf file. So how can i make an swf file like that? Is there any program for it? Or is there already an swf file for that?
So how can i make an swf file like that? Is there any program for it?
To create swf files you need software like Adobe Flash CS5, which isn't free. I found a list of open source alternatives for you but I don't know the quality of this software: see here.
To pass variables from HTML to the flash file, this should work:
<param name="FlashVars" value="example=test">
under the other param
tags, and flashvars="example=test"
as extra attribute in the embed
tag.
The variable will then be globally accessible in the flash movie.
trace(example)
-> output: test
精彩评论