Hello all!
I have been trying to figure out how you could add in custom attribute tags that flash can recover.
EX:
<param name = “movie” value = “somefile.swf”>
<embed src = “somefile.swf” width = “550” height = “400”>
Except, that I would like to add a Custom tag, like “randNum” so that the tag user could input some number, or rather, a flash movie could generate a tag with a number already put in…
Basically, heres a really basic version of the idea.
There is a Flash Movie.
In the movie, you can input text into a textfield.
Upon finishing your message, you click a button “save”.
The flash movie then:
- Comes up with a random number unique to the message.
- Assigns that number to a variable… “randNum”.
- Saves message as a xml file to the server as “filename” + randNum.
- Outputs into a textfield a generated HTML tag that a user can post on myspace and such so that it will load in the flash movie.
Except… in the tag, there will be a custom attribute. If the random number variable “randNum” was 00112233, the custom attribute will be 00112233.
EX:
<embed src = “somefile.swf” width = “550” height = “400” randNum = “00112233”>
So when the movie opens, it retrieves that randNum from the tag and can use it inside flash. How can this be done? Sorry this post was so long, but I wanted everyone to understand the concept.