Flash Cookies

hi all,

having some trouble…:trout:

Basically i have a flash popup form that externally loads onto another swf, thats not the problem. However i have a button on the popup that needs to close the flash popup on the screen aswell as set a cookie to not show that popup again until 24hours have passed.
How do i get this to work…shared object? or get flash to call javascript which sets the cookie?
any advice and work around would be much appreciated :}