# Flash Attribute Tags

**URL:** <https://forum.kirupa.com/t/flash-attribute-tags/210207>\
**Category:** Uncategorized\
**Created:** [December 16, 2006, 2:50am UTC](https://forum.kirupa.com/t/flash-attribute-tags/210207 "2006-12-16T02:50:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonH](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RonH](https://forum.kirupa.com/u/RonH)\
**Post date:** [December 16, 2006, 2:50am UTC](https://forum.kirupa.com/t/flash-attribute-tags/210207/1 "2006-12-16T02:50:39Z")

</div>

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:

1. Comes up with a random number unique to the message.
2. Assigns that number to a variable… “randNum”.
3. Saves message as a xml file to the server as “filename” + randNum.
4. 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.
