Flash Widgets

Hi I’m looking for some advice about building flash widgets.

On a lot of widgets I’ve seen (pretty much all of them) they have a “get this” buton that when you click on it, it shows you a load of html embed code similar to the following.

Q1

Is this class Id simply generated by flash when you export a movie?

ActionScript Code:
[FONT=Courier New][LEFT]classid=[COLOR=#FF0000]"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"[/COLOR]

[/LEFT]
[/FONT]

ActionScript Code:
[FONT=Courier New][LEFT]id=[COLOR=#FF0000]"mojowidget"[/COLOR]

[/LEFT]
[/FONT]

Q2

What do you think the difference between these two are? In the embed src it gives the name of the swf “widget.swf” followed by a question mark and digits. Does this mean the widgets name/path is actually “widget”+ “all those? numbers”

ActionScript Code:
[FONT=Courier New][LEFT]embed src=[COLOR=#FF0000]"http://static.boomshuffle.com/swf/widget.swf?20080103164115"[/COLOR]

[/LEFT]
[/FONT]

ActionScript Code:
[FONT=Courier New][LEFT]flashvars=[COLOR=#FF0000]"embedded=true&mixxml=http://www.boomshuffle.com/widget/?id=4469"[/COLOR]

[/LEFT]
[/FONT]

Id appreciate if somebody could help understand this anatomy.

Also I’d be interested to know how to get flash to generate the embed code (or is it even flash that does it)

This is totally new to me so I dont really have much of a vocabulary with which to describe what It is I’m after so any knowledge/links that you have on the subject at all would really help me out

Thanks,
dub