# SharedObject in Flash ActiveX... not writing cookie

**URL:** <https://forum.kirupa.com/t/sharedobject-in-flash-activex-not-writing-cookie/125544>\
**Category:** Uncategorized\
**Created:** [October 14, 2004, 5:16pm UTC](https://forum.kirupa.com/t/sharedobject-in-flash-activex-not-writing-cookie/125544 "2004-10-14T17:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryguy](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@ryguy](https://forum.kirupa.com/u/ryguy)\
**Post date:** [October 14, 2004, 5:16pm UTC](https://forum.kirupa.com/t/sharedobject-in-flash-activex-not-writing-cookie/125544/1 "2004-10-14T17:16:12Z")

</div>

I’m using VB to access the Shockwave Flash ActiveX control (flash.ocx). I have an SWF that uses the sharedObject to write a flashcookie to X:\Documents and Settings\Username$\Application Data\Macromedia\Flash Player\localhost\whatever\_dir\_the\_swf\_is\_run

It works fine and writes the data when I just load the SWF from the Flash Player. BUT when I load the SWF inside my VB application, it never writes the file. The SWF loads fine and the correct varibles are set in the flash file, but the cookie doesn’t appear, even if I unload the movie or close the VB application. Is this a limitation with the activeX control? If so, I’m wondering if there is any other way for Flash to write to a file, like an INI or text file, without having to be on a server.

Thanks in advance,

Ryan
